/linux/include/crypto/ |
H A D | kpp.h | 48 struct crypto_kpp { struct 78 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer, 83 unsigned int (*max_size)(struct crypto_kpp *tfm); 85 int (*init)(struct crypto_kpp *tfm); 86 void (*exit)(struct crypto_kpp *tfm); 110 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask); 114 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() 124 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() 126 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm() 129 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() [all …]
|
/linux/include/crypto/internal/ |
H A D | kpp.h | 63 static inline void kpp_set_reqsize(struct crypto_kpp *kpp, in kpp_set_reqsize() 69 static inline void kpp_set_reqsize_dma(struct crypto_kpp *kpp, in kpp_set_reqsize_dma() 76 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) in kpp_tfm_ctx() 81 static inline void *kpp_tfm_ctx_dma(struct crypto_kpp *tfm) in kpp_tfm_ctx_dma() 91 static inline const char *kpp_alg_name(struct crypto_kpp *tfm) in kpp_alg_name() 128 static inline struct kpp_instance *kpp_alg_instance(struct crypto_kpp *kpp) in kpp_alg_instance() 239 static inline struct crypto_kpp *crypto_spawn_kpp( in crypto_spawn_kpp()
|
/linux/net/bluetooth/ |
H A D | ecdh_helper.h | 26 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 D | ecdh_helper.c | 44 int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64], in compute_ecdh_secret() 101 int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]) in set_ecdh_privkey() 145 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key() 194 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
|
H A D | selftest.c | 141 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()
|
H A D | smp.c | 93 struct crypto_kpp *tfm_ecdh; 131 struct crypto_kpp *tfm_ecdh; 2748 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key() 3289 struct crypto_kpp *tfm_ecdh; in smp_add_cid() 3473 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() 3739 struct crypto_kpp *tfm_ecdh) in run_selftests() 3823 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp()
|
/linux/crypto/ |
H A D | ecdh.c | 21 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() 57 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() 123 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size() 131 static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p192_init_tfm() 156 static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p256_init_tfm() 181 static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in ecdh_nist_p384_init_tfm()
|
H A D | dh.c | 42 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() 169 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() 251 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size() 258 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm() 295 struct crypto_kpp *dh_tfm; 307 struct crypto_kpp *tfm) in dh_safe_prime_instance_ctx() 312 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm) in dh_safe_prime_init_tfm() 328 static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm) in dh_safe_prime_exit_tfm() 457 static int dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer, in dh_safe_prime_set_secret() [all …]
|
H A D | kpp.c | 42 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_exit_tfm() 50 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_init_tfm() 82 .tfmsize = offsetof(struct crypto_kpp, base), 85 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp()
|
H A D | curve25519-generic.c | 9 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()
|
H A D | testmgr.c | 3926 static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, in do_test_kpp() 4068 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() 4087 struct crypto_kpp *tfm; in alg_test_kpp()
|
/linux/include/linux/ |
H A D | nvme-auth.h | 37 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/arch/arm/crypto/ |
H A D | curve25519-glue.c | 49 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/arch/powerpc/crypto/ |
H A D | curve25519-ppc64le-core.c | 195 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret() 212 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_generate_public_key() 234 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_shared_secret() 262 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
|
/linux/drivers/crypto/hisilicon/hpre/ |
H A D | hpre_crypto.c | 597 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_dh_compute_value() 720 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_dh_set_secret() 747 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm) in hpre_dh_max_size() 754 static int hpre_dh_init_tfm(struct crypto_kpp *tfm) in hpre_dh_init_tfm() 763 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm) in hpre_dh_exit_tfm() 1396 static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_ecdh_set_secret() 1591 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_ecdh_compute_value() 1632 static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm) in hpre_ecdh_max_size() 1640 static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p192_init_tfm() 1651 static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p256_init_tfm() [all …]
|
/linux/drivers/nvme/common/ |
H A D | auth.c | 384 int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid) in nvme_auth_gen_privkey() 396 int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm, in nvme_auth_gen_pubkey() 421 int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm, in nvme_auth_gen_shared_secret()
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_asym_algs.c | 113 struct crypto_kpp *ftfm; 221 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value() 389 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_generate_public_key() 404 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_shared_secret() 475 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in qat_dh_set_secret() 516 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size() 526 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm() 554 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm()
|
/linux/Documentation/crypto/ |
H A D | api-kpp.rst | 5 :functions: kpp_request crypto_kpp kpp_alg kpp_secret
|
/linux/arch/x86/crypto/ |
H A D | curve25519-x86_64.c | 1615 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/security/keys/ |
H A D | dh.c | 134 struct crypto_kpp *tfm; in __keyctl_dh_compute()
|
/linux/drivers/nvme/target/ |
H A D | nvmet.h | 296 struct crypto_kpp *dh_tfm;
|
/linux/drivers/char/tpm/ |
H A D | tpm2-sessions.c | 498 struct crypto_kpp *kpp; in tpm_buf_append_salt()
|
/linux/drivers/nvme/host/ |
H A D | auth.c | 25 struct crypto_kpp *dh_tfm;
|