Lines Matching defs:tfm

592 	struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
593 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
715 static int hpre_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
718 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
742 static unsigned int hpre_dh_max_size(struct crypto_kpp *tfm)
744 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
749 static int hpre_dh_init_tfm(struct crypto_kpp *tfm)
751 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
753 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
758 static void hpre_dh_exit_tfm(struct crypto_kpp *tfm)
760 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
795 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
796 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
802 /* For 512 and 1536 bits key size, use soft tfm instead */
807 akcipher_request_set_tfm(req, tfm);
843 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
844 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
850 /* For 512 and 1536 bits key size, use soft tfm instead */
855 akcipher_request_set_tfm(req, tfm);
905 /* if invalid key size provided, we use software tfm */
1131 static int hpre_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key,
1134 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
1144 static int hpre_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key,
1147 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
1157 static unsigned int hpre_rsa_max_size(struct crypto_akcipher *tfm)
1159 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
1161 /* For 512 and 1536 bits key size, use soft tfm instead */
1169 static int hpre_rsa_init_tfm(struct crypto_akcipher *tfm)
1171 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
1180 akcipher_set_reqsize(tfm, sizeof(struct hpre_asym_request) +
1190 static void hpre_rsa_exit_tfm(struct crypto_akcipher *tfm)
1192 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm);
1391 static int hpre_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf,
1394 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1586 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
1587 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1627 static unsigned int hpre_ecdh_max_size(struct crypto_kpp *tfm)
1629 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1635 static int hpre_ecdh_nist_p192_init_tfm(struct crypto_kpp *tfm)
1637 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1641 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
1646 static int hpre_ecdh_nist_p256_init_tfm(struct crypto_kpp *tfm)
1648 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1652 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
1657 static int hpre_ecdh_nist_p384_init_tfm(struct crypto_kpp *tfm)
1659 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1663 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
1668 static void hpre_ecdh_exit_tfm(struct crypto_kpp *tfm)
1670 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1730 static int hpre_curve25519_set_secret(struct crypto_kpp *tfm, const void *buf,
1733 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1938 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
1939 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1980 static unsigned int hpre_curve25519_max_size(struct crypto_kpp *tfm)
1982 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1987 static int hpre_curve25519_init_tfm(struct crypto_kpp *tfm)
1989 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);
1991 kpp_set_reqsize(tfm, sizeof(struct hpre_asym_request) + hpre_align_pd());
1996 static void hpre_curve25519_exit_tfm(struct crypto_kpp *tfm)
1998 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm);