Searched refs:crypto_kpp (Results 1 - 22 of 22) sorted by relevance

/linux-master/net/bluetooth/
H A Decdh_helper.h26 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64],
28 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]);
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 Decdh_helper.c44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64],
101 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32])
145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64])
194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64])
H A Dselftest.c141 static int __init test_ecdh_sample(struct crypto_kpp *tfm, const u8 priv_a[32],
201 struct crypto_kpp *tfm;
H A Dsmp.c93 struct crypto_kpp *tfm_ecdh;
131 struct crypto_kpp *tfm_ecdh;
2747 struct crypto_kpp *tfm_ecdh;
3296 struct crypto_kpp *tfm_ecdh;
3480 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh)
3746 struct crypto_kpp *tfm_ecdh)
3830 struct crypto_kpp *tfm_ecdh;
/linux-master/include/crypto/internal/
H A Dkpp.h63 static inline void kpp_set_reqsize(struct crypto_kpp *kpp,
69 static inline void kpp_set_reqsize_dma(struct crypto_kpp *kpp,
76 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm)
81 static inline void *kpp_tfm_ctx_dma(struct crypto_kpp *tfm)
91 static inline const char *kpp_alg_name(struct crypto_kpp *tfm)
128 static inline struct kpp_instance *kpp_alg_instance(struct crypto_kpp *kpp)
239 static inline struct crypto_kpp *crypto_spawn_kpp(
/linux-master/include/crypto/
H A Dkpp.h41 * struct crypto_kpp - user-instantiated object which encapsulate
48 struct crypto_kpp { struct
93 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
98 unsigned int (*max_size)(struct crypto_kpp *tfm);
100 int (*init)(struct crypto_kpp *tfm);
101 void (*exit)(struct crypto_kpp *tfm);
123 * Allocate a handle for kpp algorithm. The returned struct crypto_kpp
129 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask);
133 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm)
143 static inline struct crypto_kpp *__crypto_kpp_tf
[all...]
/linux-master/include/linux/
H A Dnvme-auth.h37 int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid);
38 int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm,
40 int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm,
/linux-master/crypto/
H A Dcurve25519-generic.c9 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf,
26 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
57 static unsigned int curve25519_max_size(struct crypto_kpp *tfm)
H A Decdh.c21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm)
26 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
52 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
118 static unsigned int ecdh_max_size(struct crypto_kpp *tfm)
126 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm)
151 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
176 static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
H A Dkpp.c42 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
50 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
108 .tfmsize = offsetof(struct crypto_kpp, base),
111 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask)
H A Ddh.c42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm)
71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf,
169 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
251 static unsigned int dh_max_size(struct crypto_kpp *tfm)
258 static void dh_exit_tfm(struct crypto_kpp *tfm)
295 struct crypto_kpp *dh_tfm;
307 struct crypto_kpp *tfm)
312 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm)
328 static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm)
457 static int dh_safe_prime_set_secret(struct crypto_kpp *tf
[all...]
H A Dtestmgr.c3887 static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec,
4029 static int test_kpp(struct crypto_kpp *tfm, const char *alg,
4048 struct crypto_kpp *tfm;
/linux-master/arch/arm/crypto/
H A Dcurve25519-glue.c49 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf,
66 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
97 static unsigned int curve25519_max_size(struct crypto_kpp *tfm)
/linux-master/drivers/crypto/
H A Datmel-ecc.c42 struct crypto_kpp *fallback;
77 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
139 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
167 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
247 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm)
250 struct crypto_kpp *fallback;
273 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm)
282 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm)
/linux-master/drivers/nvme/common/
H A Dauth.c384 int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid)
396 int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm,
421 int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm,
/linux-master/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c595 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
718 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
745 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm)
752 static int hpre_dh_init_tfm(struct crypto_kpp *tfm)
761 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm)
1394 static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
1589 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
1630 static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm)
1638 static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm)
1649 static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tf
[all...]
/linux-master/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c535 static int kmb_ocs_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
795 static int kmb_ocs_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
802 static int kmb_ocs_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
809 static void kmb_ocs_ecdh_exit_tfm(struct crypto_kpp *tfm)
816 static unsigned int kmb_ocs_ecdh_max_size(struct crypto_kpp *tfm)
/linux-master/security/keys/
H A Ddh.c134 struct crypto_kpp *tfm;
/linux-master/arch/x86/crypto/
H A Dcurve25519-x86_64.c1615 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf,
1632 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
1654 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
1682 static unsigned int curve25519_max_size(struct crypto_kpp *tfm)
/linux-master/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c219 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
446 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
480 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm)
487 static int qat_dh_init_tfm(struct crypto_kpp *tfm)
504 static void qat_dh_exit_tfm(struct crypto_kpp *tfm)
/linux-master/drivers/nvme/target/
H A Dnvmet.h242 struct crypto_kpp *dh_tfm;
/linux-master/drivers/nvme/host/
H A Dauth.c25 struct crypto_kpp *dh_tfm;

Completed in 402 milliseconds