Lines Matching defs:tfm

221 	struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
222 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
389 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
390 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
404 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
405 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
475 static int qat_dh_set_secret(struct crypto_kpp *tfm, const void *buf,
478 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
516 static unsigned int qat_dh_max_size(struct crypto_kpp *tfm)
518 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
526 static int qat_dh_init_tfm(struct crypto_kpp *tfm)
528 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
531 const char *alg = kpp_alg_name(tfm);
541 crypto_kpp_set_flags(ctx->ftfm, crypto_kpp_get_flags(tfm));
546 kpp_set_reqsize(tfm, reqsize);
554 static void qat_dh_exit_tfm(struct crypto_kpp *tfm)
556 struct qat_dh_ctx *ctx = kpp_tfm_ctx(tfm);
700 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
701 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
834 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req);
835 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
1211 static int qat_rsa_setkey(struct crypto_akcipher *tfm, const void *key,
1214 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
1258 static int qat_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key,
1261 return qat_rsa_setkey(tfm, key, keylen, false);
1264 static int qat_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key,
1267 return qat_rsa_setkey(tfm, key, keylen, true);
1270 static unsigned int qat_rsa_max_size(struct crypto_akcipher *tfm)
1272 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
1277 static int qat_rsa_init_tfm(struct crypto_akcipher *tfm)
1279 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);
1286 akcipher_set_reqsize(tfm, sizeof(struct qat_asym_request) + 64);
1293 static void qat_rsa_exit_tfm(struct crypto_akcipher *tfm)
1295 struct qat_rsa_ctx *ctx = akcipher_tfm_ctx(tfm);