Lines Matching refs:tfm

219 	struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);  in qat_dh_compute_value()  local
220 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_compute_value()
446 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf, in qat_dh_set_secret() argument
449 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_set_secret()
480 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm) in qat_dh_max_size() argument
482 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_max_size()
487 static int qat_dh_init_tfm(struct crypto_kpp *tfm) in qat_dh_init_tfm() argument
489 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_init_tfm()
496 kpp_set_reqsize(tfm, sizeof(struct qat_asym_request) + 64); in qat_dh_init_tfm()
504 static void qat_dh_exit_tfm(struct crypto_kpp *tfm) in qat_dh_exit_tfm() argument
506 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm); in qat_dh_exit_tfm()
647 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_enc() local
648 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_enc()
781 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in qat_rsa_dec() local
782 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_dec()
1158 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setkey() argument
1161 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_setkey()
1205 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setpubkey() argument
1208 return qat_rsa_setkey(tfm, key, keylen, false); in qat_rsa_setpubkey()
1211 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in qat_rsa_setprivkey() argument
1214 return qat_rsa_setkey(tfm, key, keylen, true); in qat_rsa_setprivkey()
1217 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm) in qat_rsa_max_size() argument
1219 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_max_size()
1224 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm) in qat_rsa_init_tfm() argument
1226 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_init_tfm()
1233 akcipher_set_reqsize(tfm, sizeof(struct qat_asym_request) + 64); in qat_rsa_init_tfm()
1240 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm) in qat_rsa_exit_tfm() argument
1242 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm); in qat_rsa_exit_tfm()