Lines Matching refs:tfm

592 	struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);  in hpre_dh_compute_value()  local
593 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_compute_value()
715 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_dh_set_secret() argument
718 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_set_secret()
742 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm) in hpre_dh_max_size() argument
744 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_max_size()
749 static int hpre_dh_init_tfm(struct crypto_kpp *tfm) in hpre_dh_init_tfm() argument
751 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_init_tfm()
753 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd()); in hpre_dh_init_tfm()
758 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm) in hpre_dh_exit_tfm() argument
760 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_exit_tfm()
795 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_enc() local
796 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_enc()
807 akcipher_request_set_tfm(req, tfm); in hpre_rsa_enc()
843 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in hpre_rsa_dec() local
844 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_dec()
855 akcipher_request_set_tfm(req, tfm); in hpre_rsa_dec()
1131 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setpubkey() argument
1134 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setpubkey()
1144 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in hpre_rsa_setprivkey() argument
1147 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setprivkey()
1157 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm) in hpre_rsa_max_size() argument
1159 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_max_size()
1169 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm) in hpre_rsa_init_tfm() argument
1171 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_init_tfm()
1180 akcipher_set_reqsize(tfm, sizeof(struct hpre_asym_request) + in hpre_rsa_init_tfm()
1190 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm) in hpre_rsa_exit_tfm() argument
1192 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_exit_tfm()
1391 static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_ecdh_set_secret() argument
1394 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_set_secret()
1586 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_ecdh_compute_value() local
1587 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_compute_value()
1627 static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm) in hpre_ecdh_max_size() argument
1629 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_max_size()
1635 static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p192_init_tfm() argument
1637 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p192_init_tfm()
1641 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd()); in hpre_ecdh_nist_p192_init_tfm()
1646 static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p256_init_tfm() argument
1648 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p256_init_tfm()
1652 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd()); in hpre_ecdh_nist_p256_init_tfm()
1657 static int hpre_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm) in hpre_ecdh_nist_p384_init_tfm() argument
1659 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p384_init_tfm()
1663 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd()); in hpre_ecdh_nist_p384_init_tfm()
1668 static void hpre_ecdh_exit_tfm(struct crypto_kpp *tfm) in hpre_ecdh_exit_tfm() argument
1670 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_exit_tfm()
1730 static int hpre_curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in hpre_curve25519_set_secret() argument
1733 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_set_secret()
1938 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in hpre_curve25519_compute_value() local
1939 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_compute_value()
1980 static unsigned int hpre_curve25519_max_size(struct crypto_kpp *tfm) in hpre_curve25519_max_size() argument
1982 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_max_size()
1987 static int hpre_curve25519_init_tfm(struct crypto_kpp *tfm) in hpre_curve25519_init_tfm() argument
1989 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_init_tfm()
1991 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd()); in hpre_curve25519_init_tfm()
1996 static void hpre_curve25519_exit_tfm(struct crypto_kpp *tfm) in hpre_curve25519_exit_tfm() argument
1998 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_exit_tfm()