crypto_kpp
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static unsigned int dh_max_size(struct crypto_kpp *tfm)
static void dh_exit_tfm(struct crypto_kpp *tfm)
struct crypto_kpp *dh_tfm;
struct crypto_kpp *tfm)
static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm)
static void dh_safe_prime_exit_tfm(struct crypto_kpp *tfm)
static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm)
static int dh_safe_prime_set_secret(struct crypto_kpp *tfm, const void *buffer,
static unsigned int dh_safe_prime_max_size(struct crypto_kpp *tfm)
static int dh_set_secret(struct crypto_kpp *tfm, const void *buf,
static unsigned int ecdh_max_size(struct crypto_kpp *tfm)
static int ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm)
static int ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
static int ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm)
static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
struct crypto_kpp *kpp = __crypto_kpp_tfm(tfm);
.tfmsize = offsetof(struct crypto_kpp, base),
struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask)
static int do_test_kpp(struct crypto_kpp *tfm, const struct kpp_testvec *vec,
static int test_kpp(struct crypto_kpp *tfm, const char *alg,
struct crypto_kpp *tfm;
struct crypto_kpp *kpp;
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm)
struct crypto_kpp *fallback;
static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm)
static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm)
struct crypto_kpp *fallback;
static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
struct crypto_kpp *soft_tfm;
static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm)
static int hpre_ecdh_init_tfm(struct crypto_kpp *tfm)
static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm)
static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
static int hpre_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
static void hpre_ecdh_exit_tfm(struct crypto_kpp *tfm)
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm)
static int hpre_dh_init_tfm(struct crypto_kpp *tfm)
static void hpre_dh_exit_tfm(struct crypto_kpp *tfm)
struct crypto_kpp *soft_tfm;
static int kmb_ocs_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
static int kmb_ocs_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
static int kmb_ocs_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
static void kmb_ocs_ecdh_exit_tfm(struct crypto_kpp *tfm)
static unsigned int kmb_ocs_ecdh_max_size(struct crypto_kpp *tfm)
struct crypto_kpp *ftfm;
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
static unsigned int qat_dh_max_size(struct crypto_kpp *tfm)
static int qat_dh_init_tfm(struct crypto_kpp *tfm)
static void qat_dh_exit_tfm(struct crypto_kpp *tfm)
int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid)
int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm,
int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm,
struct crypto_kpp *dh_tfm;
struct crypto_kpp *dh_tfm;
static inline struct kpp_instance *kpp_alg_instance(struct crypto_kpp *kpp)
static inline struct crypto_kpp *crypto_spawn_kpp(
static inline void kpp_set_reqsize(struct crypto_kpp *kpp,
static inline void kpp_set_reqsize_dma(struct crypto_kpp *kpp,
static inline void *kpp_tfm_ctx(struct crypto_kpp *tfm)
static inline void *kpp_tfm_ctx_dma(struct crypto_kpp *tfm)
static inline const char *kpp_alg_name(struct crypto_kpp *tfm)
struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask);
static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm)
static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm)
return container_of(tfm, struct crypto_kpp, base);
static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm)
static inline unsigned int crypto_kpp_reqsize(struct crypto_kpp *tfm)
struct crypto_kpp *tfm)
static inline struct crypto_kpp *crypto_kpp_reqtfm(struct kpp_request *req)
static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm)
static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags)
static inline void crypto_free_kpp(struct crypto_kpp *tfm)
static inline struct kpp_request *kpp_request_alloc(struct crypto_kpp *tfm,
static inline int crypto_kpp_set_secret(struct crypto_kpp *tfm,
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
static inline unsigned int crypto_kpp_maxsize(struct crypto_kpp *tfm)
int (*set_secret)(struct crypto_kpp *tfm, const void *buffer,
unsigned int (*max_size)(struct crypto_kpp *tfm);
int (*init)(struct crypto_kpp *tfm);
void (*exit)(struct crypto_kpp *tfm);
int nvme_auth_gen_privkey(struct crypto_kpp *dh_tfm, u8 dh_gid);
int nvme_auth_gen_pubkey(struct crypto_kpp *dh_tfm,
int nvme_auth_gen_shared_secret(struct crypto_kpp *dh_tfm,
int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32])
int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64])
int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64])
int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 public_key[64],
int compute_ecdh_secret(struct crypto_kpp *tfm, const u8 pair_public_key[64],
int set_ecdh_privkey(struct crypto_kpp *tfm, const u8 private_key[32]);
int generate_ecdh_public_key(struct crypto_kpp *tfm, u8 public_key[64]);
int generate_ecdh_keys(struct crypto_kpp *tfm, u8 public_key[64]);
static int __init test_ecdh_sample(struct crypto_kpp *tfm, const u8 priv_a[32],
struct crypto_kpp *tfm;
struct crypto_kpp *tfm_ecdh;
struct crypto_kpp *tfm_ecdh;
struct crypto_kpp *tfm_ecdh;
static int __init test_debug_key(struct crypto_kpp *tfm_ecdh)
struct crypto_kpp *tfm_ecdh)
struct crypto_kpp *tfm_ecdh;
struct crypto_kpp *tfm_ecdh;
struct crypto_kpp *tfm;