Searched refs:cbc_blocks (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/arch/arm/crypto/ |
| H A 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-6.15/arch/arm64/crypto/ |
| H A D | aes-glue.c | 282 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 352 cbc_blocks = 1; in cts_cbc_decrypt() 355 if (cbc_blocks > 0) { in cts_cbc_decrypt() 357 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 376 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|
| H A D | sm4-ce-glue.c | 215 int cbc_blocks; in sm4_cbc_cts_crypt() local 229 cbc_blocks = DIV_ROUND_UP(req->cryptlen, SM4_BLOCK_SIZE) - 2; in sm4_cbc_cts_crypt() 230 if (cbc_blocks) { in sm4_cbc_cts_crypt() 232 cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt() 247 req->cryptlen - cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | aesni-intel_glue.c | 247 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()
|