Home
last modified time | relevance | path

Searched refs:subreq (Results 1 – 14 of 14) sorted by relevance

/drivers/crypto/vmx/
Daes_cbc.c80 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_cbc_crypt() local
82 *subreq = *req; in p8_aes_cbc_crypt()
83 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_cbc_crypt()
84 return enc ? crypto_skcipher_encrypt(subreq) : in p8_aes_cbc_crypt()
85 crypto_skcipher_decrypt(subreq); in p8_aes_cbc_crypt()
Daes_xts.c91 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_xts_crypt() local
93 *subreq = *req; in p8_aes_xts_crypt()
94 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_xts_crypt()
95 return enc ? crypto_skcipher_encrypt(subreq) : in p8_aes_xts_crypt()
96 crypto_skcipher_decrypt(subreq); in p8_aes_xts_crypt()
Daes_ctr.c99 struct skcipher_request *subreq = skcipher_request_ctx(req); in p8_aes_ctr_crypt() local
101 *subreq = *req; in p8_aes_ctr_crypt()
102 skcipher_request_set_tfm(subreq, ctx->fallback); in p8_aes_ctr_crypt()
103 return crypto_skcipher_encrypt(subreq); in p8_aes_ctr_crypt()
/drivers/crypto/amcc/
Dcrypto4xx_alg.c269 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
272 skcipher_request_set_sync_tfm(subreq, ctx->sw_cipher.cipher); in crypto4xx_ctr_crypt()
273 skcipher_request_set_callback(subreq, req->base.flags, in crypto4xx_ctr_crypt()
275 skcipher_request_set_crypt(subreq, req->src, req->dst, in crypto4xx_ctr_crypt()
277 ret = encrypt ? crypto_skcipher_encrypt(subreq) in crypto4xx_ctr_crypt()
278 : crypto_skcipher_decrypt(subreq); in crypto4xx_ctr_crypt()
279 skcipher_request_zero(subreq); in crypto4xx_ctr_crypt()
354 struct aead_request *subreq = aead_request_ctx(req); in crypto4xx_aead_fallback() local
356 aead_request_set_tfm(subreq, ctx->sw_cipher.aead); in crypto4xx_aead_fallback()
357 aead_request_set_callback(subreq, req->base.flags, in crypto4xx_aead_fallback()
[all …]
/drivers/crypto/xilinx/
Dzynqmp-aes-gcm.c212 struct aead_request *subreq = aead_request_ctx(req); in zynqmp_handle_aes_req() local
219 aead_request_set_tfm(subreq, tfm_ctx->fbk_cipher); in zynqmp_handle_aes_req()
221 aead_request_set_callback(subreq, areq->base.flags, in zynqmp_handle_aes_req()
223 aead_request_set_crypt(subreq, areq->src, areq->dst, in zynqmp_handle_aes_req()
225 aead_request_set_ad(subreq, areq->assoclen); in zynqmp_handle_aes_req()
227 err = crypto_aead_encrypt(subreq); in zynqmp_handle_aes_req()
229 err = crypto_aead_decrypt(subreq); in zynqmp_handle_aes_req()
/drivers/crypto/
Dsa2ul.c1313 struct skcipher_request *subreq = skcipher_request_ctx(req); in sa_cipher_run() local
1315 skcipher_request_set_tfm(subreq, ctx->fallback.skcipher); in sa_cipher_run()
1316 skcipher_request_set_callback(subreq, req->base.flags, in sa_cipher_run()
1319 skcipher_request_set_crypt(subreq, req->src, req->dst, in sa_cipher_run()
1322 return crypto_skcipher_encrypt(subreq); in sa_cipher_run()
1324 return crypto_skcipher_decrypt(subreq); in sa_cipher_run()
1416 struct ahash_request *subreq = &rctx->fallback_req; in sa_sha_run() local
1419 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1420 subreq->base.flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in sa_sha_run()
1422 crypto_ahash_init(subreq); in sa_sha_run()
[all …]
Dgeode-aes.c272 struct skcipher_request *subreq = skcipher_request_ctx(req); in geode_skcipher_crypt() local
274 *subreq = *req; in geode_skcipher_crypt()
275 skcipher_request_set_tfm(subreq, tctx->fallback.skcipher); in geode_skcipher_crypt()
277 return crypto_skcipher_decrypt(subreq); in geode_skcipher_crypt()
279 return crypto_skcipher_encrypt(subreq); in geode_skcipher_crypt()
/drivers/crypto/keembay/
Dkeembay-ocs-aes-core.c323 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
325 skcipher_request_set_sync_tfm(subreq, tctx->sw_cipher.sk); in kmb_ocs_sk_common()
326 skcipher_request_set_callback(subreq, req->base.flags, NULL, in kmb_ocs_sk_common()
328 skcipher_request_set_crypt(subreq, req->src, req->dst, in kmb_ocs_sk_common()
332 rc = crypto_skcipher_encrypt(subreq); in kmb_ocs_sk_common()
334 rc = crypto_skcipher_decrypt(subreq); in kmb_ocs_sk_common()
336 skcipher_request_zero(subreq); in kmb_ocs_sk_common()
649 struct aead_request *subreq = aead_request_ctx(req); in kmb_ocs_aead_common() local
651 aead_request_set_tfm(subreq, tctx->sw_cipher.aead); in kmb_ocs_aead_common()
652 aead_request_set_callback(subreq, req->base.flags, in kmb_ocs_aead_common()
[all …]
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c2038 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, c_ctx->fbtfm); in sec_skcipher_soft_crypto()
2045 skcipher_request_set_sync_tfm(subreq, c_ctx->fbtfm); in sec_skcipher_soft_crypto()
2048 skcipher_request_set_callback(subreq, sreq->base.flags, in sec_skcipher_soft_crypto()
2050 skcipher_request_set_crypt(subreq, sreq->src, sreq->dst, in sec_skcipher_soft_crypto()
2053 ret = crypto_skcipher_encrypt(subreq); in sec_skcipher_soft_crypto()
2055 ret = crypto_skcipher_decrypt(subreq); in sec_skcipher_soft_crypto()
2057 skcipher_request_zero(subreq); in sec_skcipher_soft_crypto()
2289 struct aead_request *subreq; in sec_aead_soft_crypto() local
2298 subreq = aead_request_alloc(a_ctx->fallback_aead_tfm, GFP_KERNEL); in sec_aead_soft_crypto()
2299 if (!subreq) in sec_aead_soft_crypto()
[all …]
/drivers/crypto/inside-secure/
Dsafexcel_hash.c2424 struct ahash_request *subreq = ahash_request_ctx(req); in safexcel_sha3_fbcheck() local
2428 ahash_request_set_tfm(subreq, ctx->fback); in safexcel_sha3_fbcheck()
2429 ahash_request_set_callback(subreq, req->base.flags, in safexcel_sha3_fbcheck()
2431 ahash_request_set_crypt(subreq, req->src, req->result, in safexcel_sha3_fbcheck()
2450 ret = ret ?: crypto_ahash_init(subreq); in safexcel_sha3_fbcheck()
2461 struct ahash_request *subreq = ahash_request_ctx(req); in safexcel_sha3_update() local
2464 return safexcel_sha3_fbcheck(req) ?: crypto_ahash_update(subreq); in safexcel_sha3_update()
2471 struct ahash_request *subreq = ahash_request_ctx(req); in safexcel_sha3_final() local
2474 return safexcel_sha3_fbcheck(req) ?: crypto_ahash_final(subreq); in safexcel_sha3_final()
2481 struct ahash_request *subreq = ahash_request_ctx(req); in safexcel_sha3_finup() local
[all …]
Dsafexcel_cipher.c2896 struct aead_request *subreq = aead_request_ctx(req); in safexcel_aead_chachapoly_crypt() local
2930 aead_request_set_tfm(subreq, ctx->fback); in safexcel_aead_chachapoly_crypt()
2931 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in safexcel_aead_chachapoly_crypt()
2933 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in safexcel_aead_chachapoly_crypt()
2935 aead_request_set_ad(subreq, req->assoclen); in safexcel_aead_chachapoly_crypt()
2938 crypto_aead_encrypt(subreq) : in safexcel_aead_chachapoly_crypt()
2939 crypto_aead_decrypt(subreq); in safexcel_aead_chachapoly_crypt()
3397 struct aead_request *subreq = aead_request_ctx(req); in safexcel_aead_fallback_crypt() local
3399 aead_request_set_tfm(subreq, ctx->fback); in safexcel_aead_fallback_crypt()
3400 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in safexcel_aead_fallback_crypt()
[all …]
/drivers/crypto/ccree/
Dcc_cipher.c914 struct skcipher_request *subreq = skcipher_request_ctx(req); in cc_cipher_process() local
916 *subreq = *req; in cc_cipher_process()
917 skcipher_request_set_tfm(subreq, ctx_p->fallback_tfm); in cc_cipher_process()
919 return crypto_skcipher_encrypt(subreq); in cc_cipher_process()
921 return crypto_skcipher_decrypt(subreq); in cc_cipher_process()
/drivers/crypto/axis/
Dartpec6_crypto.c1205 SYNC_SKCIPHER_REQUEST_ON_STACK(subreq, ctx->fallback); in artpec6_crypto_ctr_crypt()
1207 skcipher_request_set_sync_tfm(subreq, ctx->fallback); in artpec6_crypto_ctr_crypt()
1208 skcipher_request_set_callback(subreq, req->base.flags, in artpec6_crypto_ctr_crypt()
1210 skcipher_request_set_crypt(subreq, req->src, req->dst, in artpec6_crypto_ctr_crypt()
1212 ret = encrypt ? crypto_skcipher_encrypt(subreq) in artpec6_crypto_ctr_crypt()
1213 : crypto_skcipher_decrypt(subreq); in artpec6_crypto_ctr_crypt()
1214 skcipher_request_zero(subreq); in artpec6_crypto_ctr_crypt()
/drivers/crypto/chelsio/
Dchcr_algo.c2420 struct aead_request *subreq = aead_request_ctx(req); in chcr_aead_fallback() local
2422 aead_request_set_tfm(subreq, aeadctx->sw_cipher); in chcr_aead_fallback()
2423 aead_request_set_callback(subreq, req->base.flags, in chcr_aead_fallback()
2425 aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, in chcr_aead_fallback()
2427 aead_request_set_ad(subreq, req->assoclen); in chcr_aead_fallback()
2428 return op_type ? crypto_aead_decrypt(subreq) : in chcr_aead_fallback()
2429 crypto_aead_encrypt(subreq); in chcr_aead_fallback()