Lines Matching refs:cryptlen

282 	int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2;  in cts_cbc_encrypt()
292 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_encrypt()
293 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_encrypt()
308 if (req->cryptlen == AES_BLOCK_SIZE) in cts_cbc_encrypt()
311 dst = src = scatterwalk_ffwd(sg_src, req->src, subreq.cryptlen); in cts_cbc_encrypt()
314 subreq.cryptlen); in cts_cbc_encrypt()
319 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
339 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt()
349 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_decrypt()
350 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_decrypt()
365 if (req->cryptlen == AES_BLOCK_SIZE) in cts_cbc_decrypt()
368 dst = src = scatterwalk_ffwd(sg_src, req->src, subreq.cryptlen); in cts_cbc_decrypt()
371 subreq.cryptlen); in cts_cbc_decrypt()
376 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
546 int tail = req->cryptlen % AES_BLOCK_SIZE; in xts_encrypt()
552 if (req->cryptlen < AES_BLOCK_SIZE) in xts_encrypt()
558 int xts_blocks = DIV_ROUND_UP(req->cryptlen, in xts_encrypt()
593 dst = src = scatterwalk_ffwd(sg_src, req->src, req->cryptlen); in xts_encrypt()
595 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_encrypt()
618 int tail = req->cryptlen % AES_BLOCK_SIZE; in xts_decrypt()
624 if (req->cryptlen < AES_BLOCK_SIZE) in xts_decrypt()
630 int xts_blocks = DIV_ROUND_UP(req->cryptlen, in xts_decrypt()
665 dst = src = scatterwalk_ffwd(sg_src, req->src, req->cryptlen); in xts_decrypt()
667 dst = scatterwalk_ffwd(sg_dst, req->dst, req->cryptlen); in xts_decrypt()