/linux-master/net/bluetooth/ |
H A 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]);
|
H A D | ecdh_helper.c | 39 * @public_key: pair's ecc public key. 44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], argument 63 swap_digits((u64 *)public_key, (u64 *)tmp, 4); /* x */ 64 swap_digits((u64 *)&public_key[32], (u64 *)&tmp[32], 4); /* y */ 141 * @public_key: memory where the computed ecc public key will be saved. 145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) argument 177 swap_digits((u64 *)tmp, (u64 *)public_key, 4); /* x */ 178 swap_digits((u64 *)&tmp[32], (u64 *)&public_key[32], 4); /* y */ 190 * @public_key: memory where the computed ecc public key will be saved. 194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[6 argument [all...] |
/linux-master/crypto/asymmetric_keys/ |
H A D | x509_parser.h | 9 #include <crypto/public_key.h> 15 struct public_key *pub; /* Public key details */
|
H A D | pkcs8_parser.c | 17 #include <crypto/public_key.h> 21 struct public_key *pub; 97 static struct public_key *pkcs8_parse(const void *data, size_t datalen) 100 struct public_key *pub; 106 ctx.pub = kzalloc(sizeof(struct public_key), GFP_KERNEL); 138 struct public_key *pub;
|
H A D | public_key.c | 12 #include <crypto/public_key.h> 33 struct public_key *key = asymmetric_key->payload.data[asym_crypto]; 42 void public_key_free(struct public_key *key) 62 * Given a public_key, and an encoding and hash_algo to be used for signing 67 software_key_determine_akcipher(const struct public_key *pkey, 164 struct public_key *pkey = params->key->payload.data[asym_crypto]; 279 const struct public_key *pkey = params->key->payload.data[asym_crypto]; 382 int public_key_verify_signature(const struct public_key *pkey, 459 const struct public_key *pk = key->payload.data[asym_crypto]; 468 .name = "public_key", [all...] |
H A D | restrict.c | 12 #include <crypto/public_key.h> 135 const struct public_key *pkey; 176 const struct public_key *pkey;
|
H A D | Makefile | 13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
|
H A D | signature.c | 16 #include <crypto/public_key.h>
|
H A D | pkcs7_trust.c | 16 #include <crypto/public_key.h>
|
/linux-master/include/crypto/ |
H A D | public_key.h | 23 struct public_key { struct 38 extern void public_key_free(struct public_key *key); 114 int public_key_verify_signature(const struct public_key *pkey, 118 int public_key_verify_signature(const struct public_key *pkey,
|
H A D | pkcs7.h | 13 #include <crypto/public_key.h>
|
/linux-master/drivers/crypto/ |
H A D | atmel-ecc.c | 33 * @public_key : generated when calling set_secret(). It's the responsibility 43 const u8 *public_key; member in struct:atmel_ecdh_ctx 82 void *public_key; local 87 kfree(ctx->public_key); 89 ctx->public_key = NULL; 111 public_key = kmalloc(ATMEL_ECC_PUBKEY_SIZE, GFP_KERNEL); 112 if (!public_key) 124 memcpy(public_key, &cmd->data[RSP_DATA_IDX], ATMEL_ECC_PUBKEY_SIZE); 125 ctx->public_key = public_key; [all...] |
/linux-master/crypto/ |
H A D | curve25519-generic.c | 28 u8 public_key[CURVE25519_KEY_SIZE]; local 37 public_key, CURVE25519_KEY_SIZE); 40 bp = public_key;
|
H A D | ecdh.c | 54 u64 *public_key; local 64 public_key = kmalloc(public_key_sz, GFP_KERNEL); 65 if (!public_key) 83 public_key, public_key_sz); 88 ctx->private_key, public_key, 94 ctx->private_key, public_key); 95 buf = public_key; 114 kfree(public_key);
|
H A D | ecc.c | 1511 const u64 *private_key, u64 *public_key) 1539 ecc_swap_digits(pk->x, public_key, ndigits); 1540 ecc_swap_digits(pk->y, &public_key[ndigits], ndigits); 1610 const u64 *private_key, const u64 *public_key, 1620 if (!private_key || !public_key || !curve || 1636 ecc_swap_digits(public_key, pk->x, ndigits); 1637 ecc_swap_digits(&public_key[ndigits], pk->y, ndigits); 1510 ecc_make_pub_key(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, u64 *public_key) argument 1609 crypto_ecdh_shared_secret(unsigned int curve_id, unsigned int ndigits, const u64 *private_key, const u64 *public_key, u64 *secret) argument
|
/linux-master/arch/arm/crypto/ |
H A D | curve25519-glue.c | 68 u8 public_key[CURVE25519_KEY_SIZE]; local 77 public_key, CURVE25519_KEY_SIZE); 80 bp = public_key;
|
/linux-master/include/keys/ |
H A D | asymmetric-type.h | 76 const struct public_key *asymmetric_key_public_key(const struct key *key)
|
/linux-master/include/crypto/internal/ |
H A D | ecc.h | 92 * @public_key: buffer for storing the generated public key 98 const u64 *private_key, u64 *public_key); 106 * @public_key: public key of counterpart B 116 const u64 *private_key, const u64 *public_key,
|
/linux-master/security/integrity/ |
H A D | digsig_asymmetric.c | 12 #include <crypto/public_key.h> 87 const struct public_key *pk;
|
H A D | digsig.c | 17 #include <crypto/public_key.h>
|
/linux-master/drivers/net/wireguard/ |
H A D | peer.h | 70 const u8 public_key[NOISE_PUBLIC_KEY_LEN],
|
H A D | netlink.c | 359 u8 *public_key = NULL, *preshared_key = NULL; local 367 public_key = nla_data(attrs[WGPEER_A_PUBLIC_KEY]); 412 peer = wg_peer_create(wg, public_key, preshared_key); 547 u8 public_key[NOISE_PUBLIC_KEY_LEN]; local 558 if (curve25519_generate_public(public_key, private_key)) { 560 public_key);
|
H A D | peer.c | 22 const u8 public_key[NOISE_PUBLIC_KEY_LEN], 41 public_key, preshared_key, peer); 21 wg_peer_create(struct wg_device *wg, const u8 public_key[NOISE_PUBLIC_KEY_LEN], const u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]) argument
|
/linux-master/kernel/module/ |
H A D | signing.c | 15 #include <crypto/public_key.h>
|
/linux-master/drivers/scsi/mpi3mr/mpi/ |
H A D | mpi30_image.h | 240 __le32 public_key[MPI3_PUBLIC_KEY_MAX]; member in struct:mpi3_encrypted_key_with_hash_entry
|