Home
last modified time | relevance | path

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

12

/openbmc/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()
124 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); 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()
[all …]
/openbmc/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]);
/openbmc/linux/crypto/
H A Decdh.c56 u64 *public_key; in ecdh_compute_value() local
66 public_key = kmalloc(public_key_sz, GFP_KERNEL); in ecdh_compute_value()
67 if (!public_key) in ecdh_compute_value()
85 public_key, public_key_sz); in ecdh_compute_value()
90 ctx->private_key, public_key, in ecdh_compute_value()
96 ctx->private_key, public_key); in ecdh_compute_value()
97 buf = public_key; in ecdh_compute_value()
116 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.c1533 const u64 *private_key, u64 *public_key) in ecc_make_pub_key() argument
1561 ecc_swap_digits(pk->x, public_key, ndigits); in ecc_make_pub_key()
1562 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); in ecc_make_pub_key()
1632 const u64 *private_key, const u64 *public_key, in crypto_ecdh_shared_secret() argument
1642 if (!private_key || !public_key || !curve || in crypto_ecdh_shared_secret()
1658 ecc_swap_digits(public_key, pk->x, ndigits); in crypto_ecdh_shared_secret()
1659 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); in crypto_ecdh_shared_secret()
/openbmc/u-boot/board/xilinx/zynq/
H A Dcmds.c52 static struct zynq_rsa_public_key public_key; variable
89 u32 modulus = public_key.modulus[0]; in zynq_calc_inv()
222 public_key.len = ZYNQ_RSA_MODULAR_SIZE / sizeof(u32); in zynq_authenticate_part()
223 public_key.modulus = (u32 *)ppkmodular; in zynq_authenticate_part()
224 public_key.rr = (u32 *)ppkmodularex; in zynq_authenticate_part()
225 public_key.n0inv = zynq_calc_inv(); in zynq_authenticate_part()
227 status = zynq_rsa_verify_key(&public_key, signature_ptr, in zynq_authenticate_part()
239 public_key.len = ZYNQ_RSA_MODULAR_SIZE / sizeof(u32); in zynq_authenticate_part()
240 public_key.modulus = (u32 *)spk_modular; in zynq_authenticate_part()
241 public_key.rr = (u32 *)spk_modular_ex; in zynq_authenticate_part()
[all …]
/openbmc/bmcweb/scripts/
H A Dgenerate_auth_certificates.py88 public_key = private_key.public_key()
108 builder = builder.public_key(public_key)
126 auth_key = x509.AuthorityKeyIdentifier.from_issuer_public_key(public_key)
149 public_key = private_key.public_key()
165 builder = builder.public_key(public_key)
190 auth_key = x509.AuthorityKeyIdentifier.from_issuer_public_key(public_key)
[all...]
/openbmc/u-boot/board/CZ.NIC/turris_mox/
H A Dmox_sp.c78 static char public_key[135]; in mox_sp_get_ecdsa_public_key() local
82 if (public_key[0]) in mox_sp_get_ecdsa_public_key()
83 return public_key; in mox_sp_get_ecdsa_public_key()
89 sprintf(public_key, in mox_sp_get_ecdsa_public_key()
95 return public_key; in mox_sp_get_ecdsa_public_key()
/openbmc/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()
161 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query()
276 const struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_eds_op()
379 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
456 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2()
H A Drestrict.c131 const struct public_key *pkey; in restrict_link_by_ca()
172 const struct public_key *pkey; in restrict_link_by_digsig()
H A Dx509_parser.h15 struct public_key *pub; /* Public key details */
H A DMakefile13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
/openbmc/linux/include/crypto/
H A Dpublic_key.h22 struct public_key { struct
37 extern void public_key_free(struct public_key *key); argument
113 int public_key_verify_signature(const struct public_key *pkey,
117 int public_key_verify_signature(const struct public_key *pkey, in public_key_verify_signature()
/openbmc/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()
/openbmc/linux/include/crypto/internal/
H A Decc.h108 const u64 *private_key, u64 *public_key);
126 const u64 *private_key, const u64 *public_key,
/openbmc/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],
/openbmc/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()
/openbmc/qemu/hw/virtio/
H A Dvirtio-nsm.c915 struct AttestationProperty public_key; member
969 nsm_req->public_key.is_null = true; in get_nsm_attestation_req()
1001 if (!fill_attestation_property(&(nsm_req->public_key), in get_nsm_attestation_req()
1211 if (req->public_key.is_null) { in add_payload_to_cose()
1216 req->public_key.buf, in add_payload_to_cose()
1217 req->public_key.len)) { in add_payload_to_cose()
1359 nsm_req->public_key.is_null = true; in handle_attestation()
/openbmc/linux/security/integrity/
H A Ddigsig_asymmetric.c87 const struct public_key *pk; in asymmetric_verify()
/openbmc/qemu/scripts/
H A Du2f-setup-gen.py65 pubkey = privkey.public_key()
/openbmc/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()

12