Searched refs:crypto_kpp (Results 1 – 14 of 14) sorted by relevance
/Linux-v4.19/include/crypto/ |
D | kpp.h | 47 struct crypto_kpp { struct 77 int (*set_secret)(struct crypto_kpp *tfm, const void *buffer, 82 unsigned int (*max_size)(struct crypto_kpp *tfm); 84 int (*init)(struct crypto_kpp *tfm); 85 void (*exit)(struct crypto_kpp *tfm); 110 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask); 112 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() 122 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() 124 return container_of(tfm, struct crypto_kpp, base); in __crypto_kpp_tfm() 127 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() [all …]
|
/Linux-v4.19/net/bluetooth/ |
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); 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]);
|
D | ecdh_helper.c | 60 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() 168 int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_public_key() 221 int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]) in generate_ecdh_keys()
|
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()
|
D | smp.c | 96 struct crypto_kpp *tfm_ecdh; 135 struct crypto_kpp *tfm_ecdh; 2687 struct crypto_kpp *tfm_ecdh; in smp_cmd_public_key() 3228 struct crypto_kpp *tfm_ecdh; in smp_add_cid() 3559 static int __init test_debug_key(struct crypto_kpp *tfm_ecdh) in test_debug_key() 3826 struct crypto_kpp *tfm_ecdh) in run_selftests() 3911 struct crypto_kpp *tfm_ecdh; in bt_selftest_smp()
|
/Linux-v4.19/crypto/ |
D | kpp.c | 60 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_exit_tfm() 68 struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm); in crypto_kpp_init_tfm() 90 .tfmsize = offsetof(struct crypto_kpp, base), 93 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp()
|
D | dh.c | 46 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx() 78 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret() 155 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() 200 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size() 207 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
|
D | ecdh.c | 25 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx() 39 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret() 71 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() 137 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size()
|
D | testmgr.c | 2049 static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec, in do_test_kpp() 2194 static int test_kpp(struct crypto_kpp *tfm, const char *alg, in test_kpp() 2213 struct crypto_kpp *tfm; in alg_test_kpp()
|
/Linux-v4.19/include/crypto/internal/ |
D | kpp.h | 26 static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm) in kpp_tfm_ctx() 36 static inline const char *kpp_alg_name(struct crypto_kpp *tfm) in kpp_alg_name()
|
/Linux-v4.19/drivers/crypto/ |
D | atmel-ecc.c | 85 struct crypto_kpp *fallback; 382 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in atmel_ecdh_set_secret() 446 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_generate_public_key() 471 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_compute_shared_secret() 550 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) in atmel_ecdh_init_tfm() 553 struct crypto_kpp *fallback; in atmel_ecdh_init_tfm() 575 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) in atmel_ecdh_exit_tfm() 584 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) in atmel_ecdh_max_size()
|
/Linux-v4.19/Documentation/crypto/ |
D | api-kpp.rst | 5 :functions: kpp_request crypto_kpp kpp_alg kpp_secret
|
/Linux-v4.19/drivers/crypto/qat/qat_common/ |
D | qat_asym_algs.c | 252 static inline struct qat_dh_ctx *qat_dh_get_params(struct crypto_kpp *tfm) in qat_dh_get_params() 259 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in qat_dh_compute_value() 488 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in qat_dh_set_secret() 522 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size() 529 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm() 544 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm()
|
/Linux-v4.19/security/keys/ |
D | dh.c | 244 struct crypto_kpp *tfm; in __keyctl_dh_compute()
|