Searched refs:private_key (Results 1 - 12 of 12) sorted by relevance

/linux-master/net/bluetooth/
H A Decdh_helper.h28 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]);
H A Decdh_helper.c96 * @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]) argument
108 if (private_key) {
112 swap_digits((u64 *)private_key, (u64 *)tmp, 4);
/linux-master/include/crypto/internal/
H A Decc.h75 * @private_key: private key to be used for the given curve
81 const u64 *private_key, unsigned int private_key_len);
90 * @private_key: buffer for storing the generated private key
96 u64 *private_key);
103 * @private_key: pregenerated private key for the given curve
110 const u64 *private_key, u64 *public_key);
117 * @private_key: private key of part A
128 const u64 *private_key, const u64 *public_key,
/linux-master/crypto/
H A Decdh.c18 u64 private_key[ECC_MAX_DIGITS]; member in struct:ecdh_ctx
37 memset(ctx->private_key, 0, sizeof(ctx->private_key));
41 ctx->private_key);
44 ctx->private_key, ctx->ndigits);
47 ctx->private_key, params.key_size) < 0) {
48 memzero_explicit(ctx->private_key, params.key_size);
93 ctx->private_key, public_key,
99 ctx->private_key, public_key);
H A Decc.c1478 const u64 *private_key, unsigned int ndigits)
1483 if (!private_key)
1490 if (vli_cmp(one, private_key, ndigits) != -1)
1494 if (vli_cmp(res, private_key, ndigits) != 1)
1501 const u64 *private_key, unsigned int private_key_len)
1511 return __ecc_is_key_valid(curve, private_key, ndigits);
1523 u64 *private_key)
1553 (u8 *)private_key, nbytes);
1559 if (__ecc_is_key_valid(curve, private_key, ndigits))
1567 const u64 *private_key, u6
1477 __ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, unsigned int ndigits) argument
1500 ecc_is_key_valid(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, unsigned int private_key_len) argument
1522 ecc_gen_privkey(unsigned int curve_id, unsigned int ndigits, u64 *private_key) argument
1566 ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, u64 *public_key) argument
1662 crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, const u64 *public_key, u64 *secret) argument
[all...]
/linux-master/scripts/
H A Dsign-file.c144 EVP_PKEY *private_key; local
160 private_key = ENGINE_load_private_key(e, private_key_name,
162 ERR(!private_key, "%s", private_key_name);
168 private_key = PEM_read_bio_PrivateKey(b, NULL, pem_pw_cb,
170 ERR(!private_key, "%s", private_key_name);
174 return private_key;
229 EVP_PKEY *private_key; local
304 private_key = read_private_key(private_key_name);
320 ERR(!CMS_add1_signer(cms, x509, private_key, digest_algo,
329 pkcs7 = PKCS7_sign(x509, private_key, NUL
[all...]
/linux-master/include/linux/
H A Decryptfs.h102 struct ecryptfs_private_key private_key; member in union:ecryptfs_auth_tok::__anon10833
/linux-master/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c97 * @private_key: The private key.
102 u64 private_key[KMB_ECC_VLI_MAX_DIGITS]; member in struct:ocs_ecc_ctx
455 const u64 *private_key, size_t private_key_len)
464 if (!private_key)
468 if (vli_cmp(one, private_key, ndigits) != -1)
473 if (vli_cmp(res, private_key, ndigits) != 1)
554 rc = kmb_ecc_gen_privkey(tctx->curve, tctx->private_key);
563 ecc_swap_digits((const u64 *)params.key, tctx->private_key,
624 rc = kmb_ecc_point_mult(ecc_dev, result, pk, tctx->private_key, curve);
676 rc = kmb_ecc_point_mult(tctx->ecc_dev, pk, &curve->g, tctx->private_key,
454 kmb_ecc_is_key_valid(const struct ecc_curve *curve, const u64 *private_key, size_t private_key_len) argument
[all...]
/linux-master/drivers/net/wireguard/
H A Dnoise.h116 const u8 private_key[NOISE_PUBLIC_KEY_LEN]);
H A Dnetlink.c546 u8 *private_key = nla_data(info->attrs[WGDEVICE_A_PRIVATE_KEY]); local
552 private_key, NOISE_PUBLIC_KEY_LEN))
558 if (curve25519_generate_public(public_key, private_key)) {
569 wg_noise_set_static_identity_private_key(&wg->static_identity, private_key);
H A Dnoise.c296 const u8 private_key[NOISE_PUBLIC_KEY_LEN])
298 memcpy(static_identity->static_private, private_key,
302 static_identity->static_public, private_key);
294 wg_noise_set_static_identity_private_key( struct noise_static_identity *static_identity, const u8 private_key[NOISE_PUBLIC_KEY_LEN]) argument
/linux-master/fs/ecryptfs/
H A Dkeystore.c1110 (*sig) = auth_tok->token.private_key.signature;
1297 ecryptfs_to_hex((*new_auth_tok)->token.private_key.signature,
1901 memcpy(&(candidate_auth_tok->token.private_key),
1902 &(matching_auth_tok->token.private_key),
1974 rc = write_tag_66_packet(auth_tok->token.private_key.signature,
2033 ecryptfs_from_hex(key_rec->sig, auth_tok->token.private_key.signature,
2049 auth_tok->token.private_key.key_size;

Completed in 163 milliseconds