Searched refs:curve_id (Results 1 - 9 of 9) sorted by relevance

/linux-master/include/crypto/
H A Decc_curve.h46 * @curve_id: Curves IDs:
51 const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
/linux-master/include/crypto/internal/
H A Decc.h62 * @curve_id: id representing the curve to use
69 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits,
77 * @curve_id: id representing the curve to use
84 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey);
89 * @curve_id: id representing the curve to use
97 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits,
103 * @curve_id: id representing the curve to use
115 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
/linux-master/crypto/
H A Decdh.c16 unsigned int curve_id; member in struct:ecdh_ctx
37 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits,
42 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits,
87 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits,
93 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits,
130 ctx->curve_id = ECC_CURVE_NIST_P192;
155 ctx->curve_id = ECC_CURVE_NIST_P256;
180 ctx->curve_id = ECC_CURVE_NIST_P384;
H A Decdsa.c17 unsigned int curve_id; member in struct:ecc_ctx
188 static int ecdsa_ecc_ctx_init(struct ecc_ctx *ctx, unsigned int curve_id) argument
190 ctx->curve_id = curve_id;
191 ctx->curve = ecc_get_curve(curve_id);
206 unsigned int curve_id = ctx->curve_id; local
210 ret = ecdsa_ecc_ctx_init(ctx, curve_id);
H A Decc.c53 const struct ecc_curve *ecc_get_curve(unsigned int curve_id) argument
55 switch (curve_id) {
1442 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, argument
1446 const struct ecc_curve *curve = ecc_get_curve(curve_id);
1469 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) argument
1471 const struct ecc_curve *curve = ecc_get_curve(curve_id);
1510 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, argument
1516 const struct ecc_curve *curve = ecc_get_curve(curve_id);
1609 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, argument
1618 const struct ecc_curve *curve = ecc_get_curve(curve_id);
[all...]
/linux-master/drivers/crypto/
H A Datmel-ecc.c36 * @curve_id : elliptic curve id
44 unsigned int curve_id; member in struct:atmel_ecdh_ctx
253 ctx->curve_id = ECC_CURVE_NIST_P256;
/linux-master/include/uapi/linux/
H A Dvirtio_crypto.h213 __le32 curve_id; member in struct:virtio_crypto_ecdsa_session_para
/linux-master/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c133 unsigned int curve_id; member in struct:hpre_ctx
1283 const struct ecc_curve *curve = ecc_get_curve(ctx->curve_id);
1331 ctx->key_sz = hpre_ecdh_supported_curve(ctx->curve_id);
1335 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id);
1412 curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id);
1472 unsigned int curve_sz = hpre_ecdh_get_curvesz(ctx->curve_id);
1642 ctx->curve_id = ECC_CURVE_NIST_P192;
1653 ctx->curve_id = ECC_CURVE_NIST_P256;
1664 ctx->curve_id = ECC_CURVE_NIST_P384;
/linux-master/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c776 static int kmb_ecc_tctx_init(struct ocs_ecc_ctx *tctx, unsigned int curve_id) argument
788 tctx->curve = ecc_get_curve(curve_id);

Completed in 303 milliseconds