Searched refs:cbc_blocks (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.4/arch/arm/crypto/ |
| D | aes-ce-glue.c | 281 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 295 cbc_blocks = 1; in cts_cbc_encrypt() 298 if (cbc_blocks > 0) { in cts_cbc_encrypt() 300 cbc_blocks * AES_BLOCK_SIZE, 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() local 353 cbc_blocks = 1; in cts_cbc_decrypt() 356 if (cbc_blocks > 0) { in cts_cbc_decrypt() 358 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 377 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|
| /Linux-v5.4/arch/arm64/crypto/ |
| D | aes-glue.c | 294 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 307 cbc_blocks = 1; in cts_cbc_encrypt() 310 if (cbc_blocks > 0) { in cts_cbc_encrypt() 312 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 331 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 351 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 364 cbc_blocks = 1; in cts_cbc_decrypt() 367 if (cbc_blocks > 0) { in cts_cbc_decrypt() 369 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 388 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|