Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.4/crypto/
Decdh.c69 u64 *public_key; in ecdh_compute_value() local
79 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value()
80 if (!public_key) in ecdh_compute_value()
98 public_key, public_key_sz); in ecdh_compute_value()
103 ctx->private_key, public_key, in ecdh_compute_value()
109 ctx->private_key, public_key); in ecdh_compute_value()
110 buf = public_key; in ecdh_compute_value()
129 kfree(public_key); in ecdh_compute_value()
Decc.h112 const u64 *private_key, u64 *public_key);
130 const u64 *private_key, const u64 *public_key,
Decc.c1385 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument
1411 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1412 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1455 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument
1465 if (!private_key || !public_key || !curve || in crypto_ecdh_shared_secret()
1481 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret()
1482 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
/Linux-v5.4/drivers/crypto/
Datmel-ecc.c44 const u8 *public_key; member
93 void *public_key; in atmel_ecdh_set_secret() local
98 kfree(ctx->public_key); in atmel_ecdh_set_secret()
100 ctx->public_key = NULL; in atmel_ecdh_set_secret()
123 public_key = kmalloc(ATMEL_ECC_PUBKEY_SIZE, GFP_KERNEL); in atmel_ecdh_set_secret()
124 if (!public_key) in atmel_ecdh_set_secret()
137 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); in atmel_ecdh_set_secret()
138 ctx->public_key = public_key; in atmel_ecdh_set_secret()
144 kfree(public_key); in atmel_ecdh_set_secret()
162 if (!ctx->public_key) in atmel_ecdh_generate_public_key()
[all …]
/Linux-v5.4/net/bluetooth/
Decdh_helper.c60 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], in compute_ecdh_secret()
81 swap_digits((u64 *)public_key, (u64 *)tmp, 4); /* x */ in compute_ecdh_secret()
82 swap_digits((u64 *)&public_key[32], (u64 *)&tmp[32], 4); /* y */ in compute_ecdh_secret()
168 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key()
204 swap_digits((u64 *)tmp, (u64 *)public_key, 4); /* x */ in generate_ecdh_public_key()
205 swap_digits((u64 *)&tmp[32], (u64 *)&public_key[32], 4); /* y */ in generate_ecdh_public_key()
221 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
229 return generate_ecdh_public_key(tfm, public_key); in generate_ecdh_keys()
Decdh_helper.h29 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]);
30 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);
/Linux-v5.4/crypto/asymmetric_keys/
Dpkcs8_parser.c21 struct public_key *pub;
97 static struct public_key *pkcs8_parse(const void *data, size_t datalen) in pkcs8_parse()
100 struct public_key *pub; in pkcs8_parse()
106 ctx.pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in pkcs8_parse()
138 struct public_key *pub; in pkcs8_key_preparse()
Dpublic_key.c31 struct public_key *key = asymmetric_key->payload.data[asym_crypto]; in public_key_describe()
40 void public_key_free(struct public_key *key) in public_key_free()
65 const struct public_key *pkey, in software_key_determine_akcipher()
107 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query()
166 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op()
250 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
327 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2()
Dx509_parser.h15 struct public_key *pub; /* Public key details */
DMakefile13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
Dx509_cert_parser.c74 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
/Linux-v5.4/include/crypto/
Dpublic_key.h22 struct public_key { struct
33 extern void public_key_free(struct public_key *key); argument
81 int public_key_verify_signature(const struct public_key *pkey,
/Linux-v5.4/Documentation/crypto/
Dasymmetric-keys.txt90 #include <crypto/public_key.h>
/Linux-v5.4/drivers/scsi/qla2xxx/
Dqla_def.h4600 uint32_t public_key[0x41]; member
/Linux-v5.4/
DMAINTAINERS2681 F: include/crypto/public_key.h