Searched refs:cbc_blocks (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.10/arch/arm/crypto/ |
| D | aes-ce-glue.c | 271 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 285 cbc_blocks = 1; in cts_cbc_encrypt() 288 if (cbc_blocks > 0) { in cts_cbc_encrypt() 290 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 309 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 329 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 343 cbc_blocks = 1; in cts_cbc_decrypt() 346 if (cbc_blocks > 0) { in cts_cbc_decrypt() 348 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 367 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|
| /Linux-v5.10/arch/arm64/crypto/ |
| D | aes-glue.c | 276 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 289 cbc_blocks = 1; in cts_cbc_encrypt() 292 if (cbc_blocks > 0) { in cts_cbc_encrypt() 294 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 313 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 333 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 346 cbc_blocks = 1; in cts_cbc_decrypt() 349 if (cbc_blocks > 0) { in cts_cbc_decrypt() 351 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 370 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|