Searched refs:public_key (Results 1 – 13 of 13) sorted by relevance
/Linux-v4.19/crypto/ |
D | ecdh.c | 73 u64 *public_key; in ecdh_compute_value() local 83 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value() 84 if (!public_key) in ecdh_compute_value() 102 public_key, public_key_sz); in ecdh_compute_value() 107 ctx->private_key, public_key, in ecdh_compute_value() 113 ctx->private_key, public_key); in ecdh_compute_value() 114 buf = public_key; in ecdh_compute_value() 133 kfree(public_key); in ecdh_compute_value()
|
D | ecc.h | 74 const u64 *private_key, u64 *public_key); 92 const u64 *private_key, const u64 *public_key,
|
D | ecc.c | 987 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument 1013 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key() 1014 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key() 1053 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument 1063 if (!private_key || !public_key || !curve || in crypto_ecdh_shared_secret() 1079 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret() 1080 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
|
/Linux-v4.19/net/bluetooth/ |
D | ecdh_helper.c | 60 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()
|
D | ecdh_helper.h | 29 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-v4.19/include/crypto/ |
D | public_key.h | 23 struct public_key { struct 30 extern void public_key_free(struct public_key *key); argument 71 int public_key_verify_signature(const struct public_key *pkey,
|
/Linux-v4.19/drivers/crypto/ |
D | atmel-ecc.c | 86 const u8 *public_key; member 387 void *public_key; in atmel_ecdh_set_secret() local 392 kfree(ctx->public_key); in atmel_ecdh_set_secret() 394 ctx->public_key = NULL; in atmel_ecdh_set_secret() 417 public_key = kmalloc(ATMEL_ECC_PUBKEY_SIZE, GFP_KERNEL); in atmel_ecdh_set_secret() 418 if (!public_key) in atmel_ecdh_set_secret() 431 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); in atmel_ecdh_set_secret() 432 ctx->public_key = public_key; in atmel_ecdh_set_secret() 438 kfree(public_key); in atmel_ecdh_set_secret() 462 ctx->public_key, nbytes); in atmel_ecdh_generate_public_key() [all …]
|
/Linux-v4.19/crypto/asymmetric_keys/ |
D | public_key.c | 35 struct public_key *key = asymmetric_key->payload.data[asym_crypto]; in public_key_describe() 44 void public_key_free(struct public_key *key) in public_key_free() 65 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature() 157 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2()
|
D | x509_parser.h | 19 struct public_key *pub; /* Public key details */
|
D | Makefile | 13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
|
D | x509_cert_parser.c | 75 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
|
/Linux-v4.19/Documentation/crypto/ |
D | asymmetric-keys.txt | 90 #include <crypto/public_key.h>
|
/Linux-v4.19/ |
D | MAINTAINERS | 2374 F: include/crypto/public_key.h
|