Home
last modified time | relevance | path

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

12

/linux/drivers/crypto/
H A Datmel-ecc.c43 const u8 *public_key; member
82 void *public_key; in atmel_ecdh_set_secret() local
87 kfree(ctx->public_key); in atmel_ecdh_set_secret()
89 ctx->public_key = NULL; in atmel_ecdh_set_secret()
111 public_key = kmalloc(ATMEL_ECC_PUBKEY_SIZE, GFP_KERNEL); in atmel_ecdh_set_secret()
112 if (!public_key) in atmel_ecdh_set_secret()
125 ctx->public_key = public_key; in atmel_ecdh_set_secret()
131 kfree(public_key); in atmel_ecdh_set_secret()
149 if (!ctx->public_key) in atmel_ecdh_generate_public_key()
158 ctx->public_key, nbytes); in atmel_ecdh_generate_public_key()
[all …]
/linux/net/bluetooth/
H A Decdh_helper.c44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], in compute_ecdh_secret()
63 swap_digits((u64 *)public_key, (u64 *)tmp, 4); /* x */ in compute_ecdh_secret()
64 swap_digits((u64 *)&public_key[32], (u64 *)&tmp[32], 4); /* y */ in compute_ecdh_secret()
145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key()
177 swap_digits((u64 *)tmp, (u64 *)public_key, 4); /* x */ in generate_ecdh_public_key()
178 swap_digits((u64 *)&tmp[32], (u64 *)&public_key[32], 4); /* y */ in generate_ecdh_public_key()
194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
202 return generate_ecdh_public_key(tfm, public_key); in generate_ecdh_keys()
H A 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/crypto/
H A Decdh.c59 u64 *public_key; in ecdh_compute_value() local
69 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value()
70 if (!public_key) in ecdh_compute_value()
88 public_key, public_key_sz); in ecdh_compute_value()
93 ctx->private_key, public_key, in ecdh_compute_value()
99 ctx->private_key, public_key); in ecdh_compute_value()
100 buf = public_key; in ecdh_compute_value()
119 kfree(public_key); in ecdh_compute_value()
H A 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()
H A Decc.c1567 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument
1592 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1593 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1663 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument
1672 if (!private_key || !public_key || ndigits > ARRAY_SIZE(rand_z)) { in crypto_ecdh_shared_secret()
1687 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret()
1688 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
/linux/crypto/asymmetric_keys/
H A 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()
H A 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 software_key_determine_akcipher(const struct public_key *pkey, in software_key_determine_akcipher()
157 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query()
284 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op()
387 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
464 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2()
H A Dx509_parser.h16 struct public_key *pub; /* Public key details */
H A Drestrict.c135 const struct public_key *pkey; in restrict_link_by_ca()
176 const struct public_key *pkey; in restrict_link_by_digsig()
H A DMakefile13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
H A Dx509_cert_parser.c71 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
/linux/include/crypto/
H A Dpublic_key.h23 struct public_key { struct
38 extern void public_key_free(struct public_key *key); argument
114 int public_key_verify_signature(const struct public_key *pkey,
118 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
/linux/arch/arm/crypto/
H A Dcurve25519-glue.c68 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_value() local
77 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_value()
80 bp = public_key; in curve25519_compute_value()
/linux/include/crypto/internal/
H A Decc.h113 const u64 *private_key, u64 *public_key);
131 const u64 *private_key, const u64 *public_key,
/linux/drivers/net/wireguard/
H A Dnetlink.c359 u8 *public_key = NULL, *preshared_key = NULL; in set_peer() local
367 public_key = nla_data(attrs[WGPEER_A_PUBLIC_KEY]); in set_peer()
412 peer = wg_peer_create(wg, public_key, preshared_key); in set_peer()
547 u8 public_key[NOISE_PUBLIC_KEY_LEN]; in wg_set_device() local
558 if (curve25519_generate_public(public_key, private_key)) { in wg_set_device()
560 public_key); in wg_set_device()
H A Dpeer.c22 const u8 public_key[NOISE_PUBLIC_KEY_LEN], in wg_peer_create()
41 public_key, preshared_key, peer); in wg_peer_create()
H A Dpeer.h70 const u8 public_key[NOISE_PUBLIC_KEY_LEN],
/linux/arch/powerpc/crypto/
H A Dcurve25519-ppc64le-core.c236 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() local
246 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_shared_secret()
250 curve25519_arch(buf, secret, public_key); in curve25519_compute_shared_secret()
/linux/include/keys/
H A Dasymmetric-type.h76 const struct public_key *asymmetric_key_public_key(const struct key *key) in asymmetric_key_public_key()
/linux/security/integrity/
H A Ddigsig_asymmetric.c87 const struct public_key *pk; in asymmetric_verify()
/linux/arch/x86/crypto/
H A Dcurve25519-x86_64.c1656 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() local
1666 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_shared_secret()
1670 curve25519_arch(buf, secret, public_key); in curve25519_compute_shared_secret()
/linux/drivers/scsi/mpi3mr/mpi/
H A Dmpi30_image.h211 __le32 public_key[MPI3_PUBLIC_KEY_MAX]; member
/linux/Documentation/crypto/
H A Dasymmetric-keys.rst89 #include <crypto/public_key.h>
/linux/drivers/scsi/qla2xxx/
H A Dqla_def.h5213 uint32_t public_key[0x41]; member

12