Searched refs:curve_id (Results 1 – 9 of 9) sorted by relevance
/linux-6.12.1/crypto/ |
D | ecdh.c | 16 unsigned int curve_id; member 40 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 46 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 92 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 98 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 135 ctx->curve_id = ECC_CURVE_NIST_P192; in ecdh_nist_p192_init_tfm() 160 ctx->curve_id = ECC_CURVE_NIST_P256; in ecdh_nist_p256_init_tfm() 185 ctx->curve_id = ECC_CURVE_NIST_P384; in ecdh_nist_p384_init_tfm()
|
D | ecdsa.c | 17 unsigned int curve_id; member 171 static int ecdsa_ecc_ctx_init(struct ecc_ctx *ctx, unsigned int curve_id) in ecdsa_ecc_ctx_init() argument 173 ctx->curve_id = curve_id; in ecdsa_ecc_ctx_init() 174 ctx->curve = ecc_get_curve(curve_id); in ecdsa_ecc_ctx_init() 189 unsigned int curve_id = ctx->curve_id; in ecdsa_ecc_ctx_reset() local 193 ret = ecdsa_ecc_ctx_init(ctx, curve_id); in ecdsa_ecc_ctx_reset()
|
D | ecc.c | 53 const struct ecc_curve *ecc_get_curve(unsigned int curve_id) in ecc_get_curve() argument 55 switch (curve_id) { in ecc_get_curve() 1500 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid() argument 1504 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid() 1522 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, in ecc_gen_privkey() argument 1525 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey() 1566 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key() argument 1571 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_make_pub_key() 1662 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret() argument 1670 const struct ecc_curve *curve = ecc_get_curve(curve_id); in crypto_ecdh_shared_secret()
|
/linux-6.12.1/include/crypto/internal/ |
D | ecc.h | 83 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, 98 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, 112 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits, 130 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
|
/linux-6.12.1/include/crypto/ |
D | ecc_curve.h | 53 const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
|
/linux-6.12.1/drivers/crypto/ |
D | atmel-ecc.c | 44 unsigned int curve_id; member 253 ctx->curve_id = ECC_CURVE_NIST_P256; in atmel_ecdh_init_tfm()
|
/linux-6.12.1/drivers/crypto/hisilicon/hpre/ |
D | hpre_crypto.c | 133 unsigned int curve_id; member 1285 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve() 1333 ctx->key_sz = hpre_ecdh_supported_curve(ctx->curve_id); in hpre_ecdh_set_param() 1337 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_param() 1414 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_secret() 1474 unsigned int curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_cb() 1644 ctx->curve_id = ECC_CURVE_NIST_P192; in hpre_ecdh_nist_p192_init_tfm() 1655 ctx->curve_id = ECC_CURVE_NIST_P256; in hpre_ecdh_nist_p256_init_tfm() 1666 ctx->curve_id = ECC_CURVE_NIST_P384; in hpre_ecdh_nist_p384_init_tfm()
|
/linux-6.12.1/include/uapi/linux/ |
D | virtio_crypto.h | 213 __le32 curve_id; member
|
/linux-6.12.1/drivers/crypto/intel/keembay/ |
D | keembay-ocs-ecc.c | 776 static int kmb_ecc_tctx_init(struct ocs_ecc_ctx *tctx, unsigned int curve_id) in kmb_ecc_tctx_init() argument 788 tctx->curve = ecc_get_curve(curve_id); in kmb_ecc_tctx_init()
|