Home
last modified time | relevance | path

Searched refs:ftfm (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_asym_algs.c113 struct crypto_kpp *ftfm; member
394 kpp_request_set_tfm(nreq, ctx->ftfm); in qat_dh_generate_public_key()
409 kpp_request_set_tfm(nreq, ctx->ftfm); in qat_dh_compute_shared_secret()
488 return crypto_kpp_set_secret(ctx->ftfm, buf, len); in qat_dh_set_secret()
521 return crypto_kpp_maxsize(ctx->ftfm); in qat_dh_max_size()
537 ctx->ftfm = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in qat_dh_init_tfm()
538 if (IS_ERR(ctx->ftfm)) in qat_dh_init_tfm()
539 return PTR_ERR(ctx->ftfm); in qat_dh_init_tfm()
541 crypto_kpp_set_flags(ctx->ftfm, crypto_kpp_get_flags(tfm)); in qat_dh_init_tfm()
544 sizeof(struct kpp_request) + crypto_kpp_reqsize(ctx->ftfm)); in qat_dh_init_tfm()
[all …]
H A Dqat_algs.c91 struct crypto_skcipher *ftfm; member
977 ret = crypto_skcipher_setkey(ctx->ftfm, key, keylen); in qat_alg_skcipher_xts_setkey()
1077 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_encrypt()
1145 skcipher_request_set_tfm(nreq, ctx->ftfm); in qat_alg_skcipher_xts_decrypt()
1217 ctx->ftfm = crypto_alloc_skcipher("xts(aes)", 0, in qat_alg_skcipher_init_xts_tfm()
1219 if (IS_ERR(ctx->ftfm)) in qat_alg_skcipher_init_xts_tfm()
1220 return PTR_ERR(ctx->ftfm); in qat_alg_skcipher_init_xts_tfm()
1224 crypto_free_skcipher(ctx->ftfm); in qat_alg_skcipher_init_xts_tfm()
1230 crypto_skcipher_reqsize(ctx->ftfm)); in qat_alg_skcipher_init_xts_tfm()
1267 if (ctx->ftfm) in qat_alg_skcipher_exit_xts_tfm()
[all …]