Home
last modified time | relevance | path

Searched refs:curve_id (Results 1 – 8 of 8) sorted by relevance

/linux/crypto/
A Decdh.c16 unsigned int curve_id; member
37 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
42 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret()
87 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
93 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
130 ctx->curve_id = ECC_CURVE_NIST_P192; in ecdh_nist_p192_init_tfm()
155 ctx->curve_id = ECC_CURVE_NIST_P256; in ecdh_nist_p256_init_tfm()
180 ctx->curve_id = ECC_CURVE_NIST_P384; in ecdh_nist_p384_init_tfm()
A Decdsa.c17 unsigned int curve_id; member
188 static int ecdsa_ecc_ctx_init(struct ecc_ctx *ctx, unsigned int curve_id) in ecdsa_ecc_ctx_init() argument
190 ctx->curve_id = curve_id; in ecdsa_ecc_ctx_init()
191 ctx->curve = ecc_get_curve(curve_id); in ecdsa_ecc_ctx_init()
206 unsigned int curve_id = ctx->curve_id; in ecdsa_ecc_ctx_reset() local
210 ret = ecdsa_ecc_ctx_init(ctx, curve_id); in ecdsa_ecc_ctx_reset()
A Decc.c53 const struct ecc_curve *ecc_get_curve(unsigned int curve_id) in ecc_get_curve() argument
55 switch (curve_id) { in ecc_get_curve()
1440 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid() argument
1444 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid()
1467 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) in ecc_gen_privkey() argument
1469 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey()
1508 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key() argument
1514 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_make_pub_key()
1607 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret() argument
1616 const struct ecc_curve *curve = ecc_get_curve(curve_id); in crypto_ecdh_shared_secret()
/linux/include/crypto/internal/
A Decc.h69 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
84 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey);
97 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
115 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
/linux/include/crypto/
A Decc_curve.h51 const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
/linux/drivers/crypto/
A Datmel-ecc.c44 unsigned int curve_id; member
253 ctx->curve_id = ECC_CURVE_NIST_P256; in atmel_ecdh_init_tfm()
/linux/drivers/crypto/hisilicon/hpre/
A Dhpre_crypto.c124 unsigned int curve_id; member
1262 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id); in hpre_ecdh_fill_curve()
1310 ctx->key_sz = hpre_ecdh_supported_curve(ctx->curve_id); in hpre_ecdh_set_param()
1314 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_param()
1391 params.key_size = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_set_secret()
1445 unsigned int curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id); in hpre_ecdh_cb()
1615 ctx->curve_id = ECC_CURVE_NIST_P192; in hpre_ecdh_nist_p192_init_tfm()
1624 ctx->curve_id = ECC_CURVE_NIST_P256; in hpre_ecdh_nist_p256_init_tfm()
1633 ctx->curve_id = ECC_CURVE_NIST_P384; in hpre_ecdh_nist_p384_init_tfm()
/linux/drivers/crypto/keembay/
A Dkeembay-ocs-ecc.c781 static int kmb_ecc_tctx_init(struct ocs_ecc_ctx *tctx, unsigned int curve_id) in kmb_ecc_tctx_init() argument
793 tctx->curve = ecc_get_curve(curve_id); in kmb_ecc_tctx_init()

Completed in 19 milliseconds