Home
last modified time | relevance | path

Searched refs:crypto_kpp (Results 1 – 19 of 19) sorted by relevance

/linux-5.19.10/include/crypto/
Dkpp.h42 struct crypto_kpp { struct
72 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
77 unsigned int (*max_size)(struct crypto_kpp *tfm);
79 int (*init)(struct crypto_kpp *tfm);
80 void (*exit)(struct crypto_kpp *tfm);
105 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask);
107 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm()
117 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm()
119 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm()
122 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg()
[all …]
/linux-5.19.10/net/bluetooth/
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]);
Decdh_helper.c60 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], in compute_ecdh_secret()
122 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) in set_ecdh_privkey()
166 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key()
219 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
Dselftest.c141 static int __init test_ecdh_sample(struct crypto_kpp *tfm, const u8 priv_a[32], in test_ecdh_sample()
201 struct crypto_kpp *tfm; in test_ecdh()
Dsmp.c92 struct crypto_kpp *tfm_ecdh;
130 struct crypto_kpp *tfm_ecdh;
2734 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key()
3283 struct crypto_kpp *tfm_ecdh; in smp_add_cid()
3467 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key()
3733 struct crypto_kpp *tfm_ecdh) in run_selftests()
3817 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp()
/linux-5.19.10/crypto/
Decdh.c21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx()
26 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret()
52 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value()
118 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size()
126 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p192_init_tfm()
151 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p256_init_tfm()
176 static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p384_init_tfm()
Ddh.c42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx()
71 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret()
168 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value()
250 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size()
257 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
294 struct crypto_kpp *dh_tfm;
306 struct crypto_kpp *tfm) in dh_safe_prime_instance_ctx()
311 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm) in dh_safe_prime_init_tfm()
324 static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) in dh_safe_prime_exit_tfm()
453 static int dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, in dh_safe_prime_set_secret()
[all …]
Dkpp.c51 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_exit_tfm()
59 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_init_tfm()
89 .tfmsize = offsetof(struct crypto_kpp, base),
92 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp()
Dcurve25519-generic.c9 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
26 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value()
57 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
Dtestmgr.c3782 static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, in do_test_kpp()
3924 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp()
3943 struct crypto_kpp *tfm; in alg_test_kpp()
/linux-5.19.10/include/crypto/internal/
Dkpp.h53 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) in kpp_tfm_ctx()
63 static inline const char *kpp_alg_name(struct crypto_kpp *tfm) in kpp_alg_name()
100 static inline struct kpp_instance *kpp_alg_instance(struct crypto_kpp *kpp) in kpp_alg_instance()
211 static inline struct crypto_kpp *crypto_spawn_kpp( in crypto_spawn_kpp()
/linux-5.19.10/drivers/crypto/
Datmel-ecc.c42 struct crypto_kpp *fallback;
77 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in atmel_ecdh_set_secret()
139 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_generate_public_key()
167 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_compute_shared_secret()
247 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) in atmel_ecdh_init_tfm()
250 struct crypto_kpp *fallback; in atmel_ecdh_init_tfm()
273 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) in atmel_ecdh_exit_tfm()
282 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) in atmel_ecdh_max_size()
/linux-5.19.10/arch/arm/crypto/
Dcurve25519-glue.c49 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
66 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value()
97 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
/linux-5.19.10/drivers/crypto/hisilicon/hpre/
Dhpre_crypto.c576 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_dh_compute_value()
699 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_dh_set_secret()
726 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm) in hpre_dh_max_size()
733 static int hpre_dh_init_tfm(struct crypto_kpp *tfm) in hpre_dh_init_tfm()
740 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm) in hpre_dh_exit_tfm()
1370 static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_ecdh_set_secret()
1559 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_ecdh_compute_value()
1600 static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm) in hpre_ecdh_max_size()
1608 static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p192_init_tfm()
1617 static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p256_init_tfm()
[all …]
/linux-5.19.10/drivers/crypto/keembay/
Dkeembay-ocs-ecc.c540 static int kmb_ocs_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in kmb_ocs_ecdh_set_secret()
804 static int kmb_ocs_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_nist_p256_init_tfm()
811 static int kmb_ocs_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_nist_p384_init_tfm()
818 static void kmb_ocs_ecdh_exit_tfm(struct crypto_kpp *tfm) in kmb_ocs_ecdh_exit_tfm()
825 static unsigned int kmb_ocs_ecdh_max_size(struct crypto_kpp *tfm) in kmb_ocs_ecdh_max_size()
/linux-5.19.10/Documentation/crypto/
Dapi-kpp.rst5 :functions: kpp_request crypto_kpp kpp_alg kpp_secret
/linux-5.19.10/arch/x86/crypto/
Dcurve25519-x86_64.c1615 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
1632 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_generate_public_key()
1654 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_shared_secret()
1682 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
/linux-5.19.10/drivers/crypto/qat/qat_common/
Dqat_asym_algs.c220 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value()
447 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in qat_dh_set_secret()
481 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size()
488 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm()
503 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm()
/linux-5.19.10/security/keys/
Ddh.c150 struct crypto_kpp *tfm; in __keyctl_dh_compute()