Home
last modified time | relevance | path

Searched refs:cbc_blocks (Results 1 – 3 of 3) sorted by relevance

/linux/arch/arm64/crypto/
H A Daes-glue.c278 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local
291 cbc_blocks = 1; in cts_cbc_encrypt()
294 if (cbc_blocks > 0) { in cts_cbc_encrypt()
296 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
315 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
334 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local
347 cbc_blocks = 1; in cts_cbc_decrypt()
350 if (cbc_blocks > 0) { in cts_cbc_decrypt()
352 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
371 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
H A Dsm4-ce-glue.c208 int cbc_blocks; in sm4_cbc_cts_crypt() local
222 cbc_blocks = DIV_ROUND_UP(req->cryptlen, SM4_BLOCK_SIZE) - 2; in sm4_cbc_cts_crypt()
223 if (cbc_blocks) { in sm4_cbc_cts_crypt()
225 cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
240 req->cryptlen - cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
/linux/arch/x86/crypto/
H A Daesni-intel_glue.c247 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local
261 cbc_blocks = 1; in cts_cbc_encrypt()
264 if (cbc_blocks > 0) { in cts_cbc_encrypt()
266 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
284 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
303 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local
317 cbc_blocks = 1; in cts_cbc_decrypt()
320 if (cbc_blocks > 0) { in cts_cbc_decrypt()
322 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
340 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()