Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/crypto/
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-6.3-rc2/net/bluetooth/
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()
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-6.3-rc2/crypto/
A Decdh.c54 u64 *public_key; in ecdh_compute_value() local
64 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value()
65 if (!public_key) in ecdh_compute_value()
83 public_key, public_key_sz); in ecdh_compute_value()
88 ctx->private_key, public_key, in ecdh_compute_value()
94 ctx->private_key, public_key); in ecdh_compute_value()
95 buf = public_key; in ecdh_compute_value()
114 kfree(public_key); in ecdh_compute_value()
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()
A Decc.c1511 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument
1539 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1540 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1610 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument
1620 if (!private_key || !public_key || !curve || in crypto_ecdh_shared_secret()
1636 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret()
1637 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
/linux-6.3-rc2/crypto/asymmetric_keys/
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()
A Dpublic_key.c34 struct public_key *key = asymmetric_key->payload.data[asym_crypto]; in public_key_describe()
43 void public_key_free(struct public_key *key) in public_key_free()
68 software_key_determine_akcipher(const struct public_key *pkey, in software_key_determine_akcipher()
155 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query()
234 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op()
377 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
474 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2()
A Dx509_parser.h15 struct public_key *pub; /* Public key details */
A DMakefile13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
A Dx509_cert_parser.c72 cert->pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); in x509_cert_parse()
/linux-6.3-rc2/include/crypto/
A Dpublic_key.h22 struct public_key { struct
33 extern void public_key_free(struct public_key *key); argument
83 int public_key_verify_signature(const struct public_key *pkey,
/linux-6.3-rc2/arch/arm/crypto/
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-6.3-rc2/include/crypto/internal/
A Decc.h98 const u64 *private_key, u64 *public_key);
116 const u64 *private_key, const u64 *public_key,
/linux-6.3-rc2/drivers/net/wireguard/
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
557 if (curve25519_generate_public(public_key, private_key)) { in wg_set_device()
559 public_key); in wg_set_device()
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()
A Dpeer.h70 const u8 public_key[NOISE_PUBLIC_KEY_LEN],
/linux-6.3-rc2/include/keys/
A Dasymmetric-type.h76 const struct public_key *asymmetric_key_public_key(const struct key *key) in asymmetric_key_public_key()
/linux-6.3-rc2/security/integrity/
A Ddigsig_asymmetric.c87 const struct public_key *pk; in asymmetric_verify()
/linux-6.3-rc2/arch/x86/crypto/
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-6.3-rc2/drivers/scsi/mpi3mr/mpi/
A Dmpi30_image.h240 __le32 public_key[MPI3_PUBLIC_KEY_MAX]; member
/linux-6.3-rc2/Documentation/crypto/
A Dasymmetric-keys.rst89 #include <crypto/public_key.h>
/linux-6.3-rc2/drivers/scsi/qla2xxx/
A Dqla_def.h5145 uint32_t public_key[0x41]; member
/linux-6.3-rc2/
A DMAINTAINERS3207 F: include/crypto/public_key.h

Completed in 85 milliseconds