Searched refs:curve_id (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/crypto/ |
H A D | ecdh.c | 16 unsigned int curve_id; member 39 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 44 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 89 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 95 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 132 ctx->curve_id = ECC_CURVE_NIST_P192; in ecdh_nist_p192_init_tfm() 157 ctx->curve_id = ECC_CURVE_NIST_P256; in ecdh_nist_p256_init_tfm() 182 ctx->curve_id = ECC_CURVE_NIST_P384; in ecdh_nist_p384_init_tfm()
|
H A D | ecdsa.c | 17 unsigned int curve_id; member 175 static int ecdsa_ecc_ctx_init(struct ecc_ctx *ctx, unsigned int curve_id) in ecdsa_ecc_ctx_init() argument 177 ctx->curve_id = curve_id; in ecdsa_ecc_ctx_init() 178 ctx->curve = ecc_get_curve(curve_id); in ecdsa_ecc_ctx_init() 193 unsigned int curve_id = ctx->curve_id; in ecdsa_ecc_ctx_reset() local 197 ret = ecdsa_ecc_ctx_init(ctx, curve_id); in ecdsa_ecc_ctx_reset()
|
H A 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() 1464 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid() argument 1468 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid() 1491 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) in ecc_gen_privkey() argument 1493 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey() 1532 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key() argument 1538 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_make_pub_key() 1631 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret() argument 1640 const struct ecc_curve *curve = ecc_get_curve(curve_id); in crypto_ecdh_shared_secret()
|
/openbmc/linux/include/crypto/internal/ |
H A D | ecc.h | 79 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, 94 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey); 107 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits, 125 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
|
/openbmc/linux/include/crypto/ |
H A D | ecc_curve.h | 51 const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
|
/openbmc/linux/drivers/crypto/ |
H A D | atmel-ecc.c | 44 unsigned int curve_id; member 253 ctx->curve_id = ECC_CURVE_NIST_P256; in atmel_ecdh_init_tfm()
|
/openbmc/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 130 unsigned int curve_id; member 1280 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve() 1328 ctx->key_sz = hpre_ecdh_supported_curve(ctx->curve_id); in hpre_ecdh_set_param() 1332 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_param() 1409 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_secret() 1469 unsigned int curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_cb() 1639 ctx->curve_id = ECC_CURVE_NIST_P192; in hpre_ecdh_nist_p192_init_tfm() 1650 ctx->curve_id = ECC_CURVE_NIST_P256; in hpre_ecdh_nist_p256_init_tfm() 1661 ctx->curve_id = ECC_CURVE_NIST_P384; in hpre_ecdh_nist_p384_init_tfm()
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_crypto.h | 213 __le32 curve_id; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_crypto.h | 213 uint32_t curve_id; member
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A 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()
|