Home
last modified time | relevance | path

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

/crypto/
Decdh.c71 u64 *public_key; in ecdh_compute_value() local
81 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value()
82 if (!public_key) in ecdh_compute_value()
100 public_key, public_key_sz); in ecdh_compute_value()
105 ctx->private_key, public_key, in ecdh_compute_value()
111 ctx->private_key, public_key); in ecdh_compute_value()
112 buf = public_key; in ecdh_compute_value()
131 kfree(public_key); in ecdh_compute_value()
Dcurve25519-generic.c28 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_value() local
37 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_value()
40 bp = public_key; in curve25519_compute_value()
Decc.h112 const u64 *private_key, u64 *public_key);
130 const u64 *private_key, const u64 *public_key,
Decc.c1386 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument
1414 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1415 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1485 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument
1495 if (!private_key || !public_key || !curve || in crypto_ecdh_shared_secret()
1511 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret()
1512 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
/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.c33 struct public_key *key = asymmetric_key->payload.data[asym_crypto]; in public_key_describe()
42 void public_key_free(struct public_key *key) in public_key_free()
67 const struct public_key *pkey, in software_key_determine_akcipher()
109 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query()
169 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op()
313 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
400 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()