| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | ecdh.c | 16 unsigned int curve_id; member 26 static unsigned int ecdh_supported_curve(unsigned int curve_id) in ecdh_supported_curve() argument 28 switch (curve_id) { in ecdh_supported_curve() 46 ndigits = ecdh_supported_curve(params.curve_id); in ecdh_set_secret() 50 ctx->curve_id = params.curve_id; in ecdh_set_secret() 54 return ecc_gen_privkey(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 59 if (ecc_is_key_valid(ctx->curve_id, ctx->ndigits, in ecdh_set_secret() 104 ret = crypto_ecdh_shared_secret(ctx->curve_id, ctx->ndigits, in ecdh_compute_value() 110 ret = ecc_make_pub_key(ctx->curve_id, ctx->ndigits, in ecdh_compute_value()
|
| H A D | ecdh_helper.c | 49 ptr = ecdh_pack_data(ptr, ¶ms->curve_id, sizeof(params->curve_id)); in crypto_ecdh_encode_key() 73 ptr = ecdh_unpack_data(¶ms->curve_id, ptr, sizeof(params->curve_id)); in crypto_ecdh_decode_key()
|
| H A 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, u64 *privkey); 111 int ecc_make_pub_key(const unsigned int curve_id, unsigned int ndigits, 129 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits,
|
| H A D | ecc.c | 45 static inline const struct ecc_curve *ecc_get_curve(unsigned int curve_id) in ecc_get_curve() argument 47 switch (curve_id) { in ecc_get_curve() 1317 int ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, in ecc_is_key_valid() argument 1321 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_is_key_valid() 1344 int ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *privkey) in ecc_gen_privkey() argument 1346 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_gen_privkey() 1385 int ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, in ecc_make_pub_key() argument 1391 const struct ecc_curve *curve = ecc_get_curve(curve_id); in ecc_make_pub_key() 1484 int crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, in crypto_ecdh_shared_secret() argument 1493 const struct ecc_curve *curve = ecc_get_curve(curve_id); in crypto_ecdh_shared_secret()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | atmel-ecc.c | 45 unsigned int curve_id; member 76 static unsigned int atmel_ecdh_supported_curve(unsigned int curve_id) in atmel_ecdh_supported_curve() argument 78 if (curve_id == ECC_CURVE_NIST_P256) in atmel_ecdh_supported_curve() 107 ctx->n_sz = atmel_ecdh_supported_curve(params.curve_id); in atmel_ecdh_set_secret() 128 ctx->curve_id = params.curve_id; in atmel_ecdh_set_secret()
|
| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | ecdh.h | 37 unsigned short curve_id; member
|
| /OK3568_Linux_fs/kernel/net/bluetooth/ |
| H A D | ecdh_helper.c | 129 p.curve_id = ECC_CURVE_NIST_P256; in set_ecdh_privkey()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/ |
| H A D | ssl.h | 2181 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/ |
| H A D | ssl.h | 2181 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/ |
| H A D | ssl.h | 2303 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/ |
| H A D | ssl.h | 2303 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/ |
| H A D | ssl.h | 2303 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/ |
| H A D | ssl.h | 2303 OPENSSL_EXPORT const char *SSL_get_curve_name(uint16_t curve_id);
|