Home
last modified time | relevance | path

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

/arch/arm/crypto/
Daes-ce-glue.c274 struct skcipher_request subreq; in cts_cbc_encrypt() local
278 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
279 skcipher_request_set_callback(&subreq, skcipher_request_flags(req), in cts_cbc_encrypt()
289 skcipher_request_set_crypt(&subreq, req->src, req->dst, in cts_cbc_encrypt()
293 err = skcipher_walk_virt(&walk, &subreq, false) ?: in cts_cbc_encrypt()
294 cbc_encrypt_walk(&subreq, &walk); in cts_cbc_encrypt()
301 dst = src = scatterwalk_ffwd(sg_src, req->src, subreq.cryptlen); in cts_cbc_encrypt()
304 subreq.cryptlen); in cts_cbc_encrypt()
308 skcipher_request_set_crypt(&subreq, src, dst, in cts_cbc_encrypt()
312 err = skcipher_walk_virt(&walk, &subreq, false); in cts_cbc_encrypt()
[all …]
Daes-neonbs-glue.c150 struct skcipher_request *subreq = skcipher_request_ctx(req); in cbc_encrypt() local
154 skcipher_request_set_tfm(subreq, ctx->enc_tfm); in cbc_encrypt()
155 skcipher_request_set_callback(subreq, in cbc_encrypt()
158 skcipher_request_set_crypt(subreq, req->src, req->dst, in cbc_encrypt()
161 return crypto_skcipher_encrypt(subreq); in cbc_encrypt()
351 struct skcipher_request subreq; in __xts_crypt() local
360 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()
361 skcipher_request_set_callback(&subreq, in __xts_crypt()
364 skcipher_request_set_crypt(&subreq, req->src, req->dst, in __xts_crypt()
366 req = &subreq; in __xts_crypt()
/arch/arm64/crypto/
Daes-glue.c279 struct skcipher_request subreq; in cts_cbc_encrypt() local
282 skcipher_request_set_tfm(&subreq, tfm); in cts_cbc_encrypt()
283 skcipher_request_set_callback(&subreq, skcipher_request_flags(req), in cts_cbc_encrypt()
293 skcipher_request_set_crypt(&subreq, req->src, req->dst, in cts_cbc_encrypt()
297 err = skcipher_walk_virt(&walk, &subreq, false) ?: in cts_cbc_encrypt()
298 cbc_encrypt_walk(&subreq, &walk); in cts_cbc_encrypt()
305 dst = src = scatterwalk_ffwd(sg_src, req->src, subreq.cryptlen); in cts_cbc_encrypt()
308 subreq.cryptlen); in cts_cbc_encrypt()
312 skcipher_request_set_crypt(&subreq, src, dst, in cts_cbc_encrypt()
316 err = skcipher_walk_virt(&walk, &subreq, false); in cts_cbc_encrypt()
[all …]
Daes-neonbs-glue.c279 struct skcipher_request subreq; in __xts_crypt() local
294 skcipher_request_set_tfm(&subreq, tfm); in __xts_crypt()
295 skcipher_request_set_callback(&subreq, in __xts_crypt()
298 skcipher_request_set_crypt(&subreq, req->src, req->dst, in __xts_crypt()
301 req = &subreq; in __xts_crypt()
/arch/x86/crypto/
Dglue_helper.c272 struct skcipher_request subreq; in glue_xts_req_128bit() local
286 skcipher_request_set_tfm(&subreq, tfm); in glue_xts_req_128bit()
287 skcipher_request_set_callback(&subreq, in glue_xts_req_128bit()
290 skcipher_request_set_crypt(&subreq, req->src, req->dst, in glue_xts_req_128bit()
292 req = &subreq; in glue_xts_req_128bit()
332 skcipher_request_set_crypt(&subreq, src, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
347 skcipher_request_set_crypt(&subreq, dst, dst, XTS_BLOCK_SIZE, in glue_xts_req_128bit()
/arch/powerpc/crypto/
Daes-spe-glue.c326 struct skcipher_request subreq; in ppc_xts_encrypt() local
334 subreq = *req; in ppc_xts_encrypt()
335 skcipher_request_set_crypt(&subreq, req->src, req->dst, in ppc_xts_encrypt()
337 req = &subreq; in ppc_xts_encrypt()
364 struct skcipher_request subreq; in ppc_xts_decrypt() local
373 subreq = *req; in ppc_xts_decrypt()
374 skcipher_request_set_crypt(&subreq, req->src, req->dst, in ppc_xts_decrypt()
376 req = &subreq; in ppc_xts_decrypt()
/arch/s390/crypto/
Daes_s390.c192 struct skcipher_request *subreq = skcipher_request_ctx(req); in fallback_skcipher_crypt() local
194 *subreq = *req; in fallback_skcipher_crypt()
195 skcipher_request_set_tfm(subreq, sctx->fallback.skcipher); in fallback_skcipher_crypt()
197 crypto_skcipher_decrypt(subreq) : in fallback_skcipher_crypt()
198 crypto_skcipher_encrypt(subreq); in fallback_skcipher_crypt()
445 struct skcipher_request *subreq = skcipher_request_ctx(req); in xts_aes_crypt() local
447 *subreq = *req; in xts_aes_crypt()
448 skcipher_request_set_tfm(subreq, xts_ctx->fallback); in xts_aes_crypt()
450 crypto_skcipher_decrypt(subreq) : in xts_aes_crypt()
451 crypto_skcipher_encrypt(subreq); in xts_aes_crypt()