/kernel/linux/linux-5.10/crypto/ |
H A D | ecdh.c | 18 u64 private_key[ECC_MAX_DIGITS]; member 43 params.key_size > sizeof(ctx->private_key)) in ecdh_set_secret() 55 ctx->private_key); in ecdh_set_secret() 57 memcpy(ctx->private_key, params.key, params.key_size); in ecdh_set_secret() 60 ctx->private_key, params.key_size) < 0) { in ecdh_set_secret() 61 memzero_explicit(ctx->private_key, params.key_size); in ecdh_set_secret() 105 ctx->private_key, public_key, in ecdh_compute_value() 111 ctx->private_key, public_key); in ecdh_compute_value()
|
H A D | ecc.h | 104 * @private_key: private key to be used for the given curve 110 const u64 *private_key, unsigned int private_key_len); 119 * @private_key: buffer for storing the generated private key 131 * @private_key: pregenerated private key for the given curve 138 const u64 *private_key, u64 *public_key); 145 * @private_key: private key of part A 156 const u64 *private_key, const u64 *public_key,
|
H A D | ecc.c | 1406 const u64 *private_key, unsigned int ndigits) in __ecc_is_key_valid() 1411 if (!private_key) in __ecc_is_key_valid() 1418 if (vli_cmp(one, private_key, ndigits) != -1) in __ecc_is_key_valid() 1422 if (vli_cmp(res, private_key, ndigits) != 1) in __ecc_is_key_valid() 1429 const u64 *private_key, unsigned int private_key_len) in ecc_is_key_valid() 1439 return __ecc_is_key_valid(curve, private_key, ndigits); in ecc_is_key_valid() 1497 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() 1504 if (!private_key || !curve || ndigits > ARRAY_SIZE(priv)) { in ecc_make_pub_key() 1509 ecc_swap_digits(private_key, priv, ndigits); in ecc_make_pub_key() 1596 const u64 *private_key, cons in crypto_ecdh_shared_secret() 1405 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) __ecc_is_key_valid() argument 1428 ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, unsigned int private_key_len) ecc_is_key_valid() argument 1496 ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, u64 *public_key) ecc_make_pub_key() argument 1595 crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, const u64 *public_key, u64 *secret) crypto_ecdh_shared_secret() argument [all...] |
/kernel/linux/linux-5.10/scripts/ |
H A D | sign-file.c | 144 EVP_PKEY *private_key; in read_private_key() local 160 private_key = ENGINE_load_private_key(e, private_key_name, in read_private_key() 162 ERR(!private_key, "%s", private_key_name); in read_private_key() 168 private_key = PEM_read_bio_PrivateKey(b, NULL, pem_pw_cb, in read_private_key() 170 ERR(!private_key, "%s", private_key_name); in read_private_key() 174 return private_key; in read_private_key() 229 EVP_PKEY *private_key; in main() local 304 private_key = read_private_key(private_key_name); in main() 320 ERR(!CMS_add1_signer(cms, x509, private_key, digest_algo, in main() 329 pkcs7 = PKCS7_sign(x509, private_key, NUL in main() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | sign-file.c | 144 EVP_PKEY *private_key; in read_private_key() local 160 private_key = ENGINE_load_private_key(e, private_key_name, in read_private_key() 162 ERR(!private_key, "%s", private_key_name); in read_private_key() 168 private_key = PEM_read_bio_PrivateKey(b, NULL, pem_pw_cb, in read_private_key() 170 ERR(!private_key, "%s", private_key_name); in read_private_key() 174 return private_key; in read_private_key() 229 EVP_PKEY *private_key; in main() local 304 private_key = read_private_key(private_key_name); in main() 320 ERR(!CMS_add1_signer(cms, x509, private_key, digest_algo, in main() 329 pkcs7 = PKCS7_sign(x509, private_key, NUL in main() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | ecdh.c | 18 u64 private_key[ECC_MAX_DIGITS]; member 38 ctx->private_key); in ecdh_set_secret() 40 memcpy(ctx->private_key, params.key, params.key_size); in ecdh_set_secret() 43 ctx->private_key, params.key_size) < 0) { in ecdh_set_secret() 44 memzero_explicit(ctx->private_key, params.key_size); in ecdh_set_secret() 88 ctx->private_key, public_key, in ecdh_compute_value() 94 ctx->private_key, public_key); in ecdh_compute_value()
|
H A D | ecc.c | 1420 const u64 *private_key, unsigned int ndigits) in __ecc_is_key_valid() 1425 if (!private_key) in __ecc_is_key_valid() 1432 if (vli_cmp(one, private_key, ndigits) != -1) in __ecc_is_key_valid() 1436 if (vli_cmp(res, private_key, ndigits) != 1) in __ecc_is_key_valid() 1443 const u64 *private_key, unsigned int private_key_len) in ecc_is_key_valid() 1453 return __ecc_is_key_valid(curve, private_key, ndigits); in ecc_is_key_valid() 1511 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() 1518 if (!private_key || !curve || ndigits > ARRAY_SIZE(priv)) { in ecc_make_pub_key() 1523 ecc_swap_digits(private_key, priv, ndigits); in ecc_make_pub_key() 1610 const u64 *private_key, cons in crypto_ecdh_shared_secret() 1419 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) __ecc_is_key_valid() argument 1442 ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, unsigned int private_key_len) ecc_is_key_valid() argument 1510 ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, u64 *public_key) ecc_make_pub_key() argument 1609 crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, const u64 *public_key, u64 *secret) crypto_ecdh_shared_secret() argument [all...] |
/kernel/linux/linux-6.6/include/crypto/internal/ |
H A D | ecc.h | 64 * @private_key: private key to be used for the given curve 70 const u64 *private_key, unsigned int private_key_len); 79 * @private_key: buffer for storing the generated private key 91 * @private_key: pregenerated private key for the given curve 98 const u64 *private_key, u64 *public_key); 105 * @private_key: private key of part A 116 const u64 *private_key, const u64 *public_key,
|
/kernel/linux/linux-6.6/net/bluetooth/ |
H A D | ecdh_helper.c | 96 * @private_key: user's ecc private key. When not NULL, the key is expected 101 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) in set_ecdh_privkey() argument 108 if (private_key) { in set_ecdh_privkey() 112 swap_digits((u64 *)private_key, (u64 *)tmp, 4); in set_ecdh_privkey()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-ecc.c | 97 * @private_key: The private key. 102 u64 private_key[KMB_ECC_VLI_MAX_DIGITS]; member 455 const u64 *private_key, size_t private_key_len) in kmb_ecc_is_key_valid() 464 if (!private_key) in kmb_ecc_is_key_valid() 468 if (vli_cmp(one, private_key, ndigits) != -1) in kmb_ecc_is_key_valid() 473 if (vli_cmp(res, private_key, ndigits) != 1) in kmb_ecc_is_key_valid() 554 rc = kmb_ecc_gen_privkey(tctx->curve, tctx->private_key); in kmb_ocs_ecdh_set_secret() 563 ecc_swap_digits((const u64 *)params.key, tctx->private_key, in kmb_ocs_ecdh_set_secret() 624 rc = kmb_ecc_point_mult(ecc_dev, result, pk, tctx->private_key, curve); in kmb_ecc_do_shared_secret() 676 rc = kmb_ecc_point_mult(tctx->ecc_dev, pk, &curve->g, tctx->private_key, in kmb_ecc_do_public_key() 454 kmb_ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, size_t private_key_len) kmb_ecc_is_key_valid() argument [all...] |
/kernel/linux/linux-5.10/net/bluetooth/ |
H A D | ecdh_helper.c | 117 * @private_key: user's ecc private key. When not NULL, the key is expected 122 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) in set_ecdh_privkey() argument 131 if (private_key) { in set_ecdh_privkey() 135 swap_digits((u64 *)private_key, (u64 *)tmp, 4); in set_ecdh_privkey()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | netlink.c | 546 u8 *private_key = nla_data(info->attrs[WGDEVICE_A_PRIVATE_KEY]); in wg_set_device() local 552 private_key, NOISE_PUBLIC_KEY_LEN)) in wg_set_device() 558 if (curve25519_generate_public(public_key, private_key)) { in wg_set_device() 569 wg_noise_set_static_identity_private_key(&wg->static_identity, private_key); in wg_set_device()
|
H A D | noise.h | 116 const u8 private_key[NOISE_PUBLIC_KEY_LEN]);
|
H A D | noise.c | 296 const u8 private_key[NOISE_PUBLIC_KEY_LEN]) in wg_noise_set_static_identity_private_key() 298 memcpy(static_identity->static_private, private_key, in wg_noise_set_static_identity_private_key() 302 static_identity->static_public, private_key); in wg_noise_set_static_identity_private_key() 294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) wg_noise_set_static_identity_private_key() argument
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | netlink.c | 546 u8 *private_key = nla_data(info->attrs[WGDEVICE_A_PRIVATE_KEY]); in wg_set_device() local 552 private_key, NOISE_PUBLIC_KEY_LEN)) in wg_set_device() 558 if (curve25519_generate_public(public_key, private_key)) { in wg_set_device() 569 wg_noise_set_static_identity_private_key(&wg->static_identity, private_key); in wg_set_device()
|
H A D | noise.h | 116 const u8 private_key[NOISE_PUBLIC_KEY_LEN]);
|
H A D | noise.c | 296 const u8 private_key[NOISE_PUBLIC_KEY_LEN]) in wg_noise_set_static_identity_private_key() 298 memcpy(static_identity->static_private, private_key, in wg_noise_set_static_identity_private_key() 302 static_identity->static_public, private_key); in wg_noise_set_static_identity_private_key() 294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) wg_noise_set_static_identity_private_key() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | ecryptfs.h | 102 struct ecryptfs_private_key private_key; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | ecryptfs.h | 102 struct ecryptfs_private_key private_key; member
|
/kernel/linux/linux-5.10/fs/ecryptfs/ |
H A D | keystore.c | 1107 (*sig) = auth_tok->token.private_key.signature; in ecryptfs_get_auth_tok_sig() 1294 ecryptfs_to_hex((*new_auth_tok)->token.private_key.signature, in parse_tag_1_packet() 1898 memcpy(&(candidate_auth_tok->token.private_key), in ecryptfs_parse_packet_set() 1899 &(matching_auth_tok->token.private_key), in ecryptfs_parse_packet_set() 1971 rc = write_tag_66_packet(auth_tok->token.private_key.signature, in pki_encrypt_session_key() 2030 ecryptfs_from_hex(key_rec->sig, auth_tok->token.private_key.signature, in write_tag_1_packet() 2046 auth_tok->token.private_key.key_size; in write_tag_1_packet()
|
/kernel/linux/linux-6.6/fs/ecryptfs/ |
H A D | keystore.c | 1108 (*sig) = auth_tok->token.private_key.signature; in ecryptfs_get_auth_tok_sig() 1295 ecryptfs_to_hex((*new_auth_tok)->token.private_key.signature, in parse_tag_1_packet() 1899 memcpy(&(candidate_auth_tok->token.private_key), in ecryptfs_parse_packet_set() 1900 &(matching_auth_tok->token.private_key), in ecryptfs_parse_packet_set() 1972 rc = write_tag_66_packet(auth_tok->token.private_key.signature, in pki_encrypt_session_key() 2031 ecryptfs_from_hex(key_rec->sig, auth_tok->token.private_key.signature, in write_tag_1_packet() 2047 auth_tok->token.private_key.key_size; in write_tag_1_packet()
|