Searched refs:cbc_blocks (Results 1 – 4 of 4) sorted by relevance
| /linux/arch/arm/crypto/ |
| H A D | aes-ce-glue.c | 269 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 283 cbc_blocks = 1; in cts_cbc_encrypt() 286 if (cbc_blocks > 0) { in cts_cbc_encrypt() 288 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 307 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 327 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 341 cbc_blocks = 1; in cts_cbc_decrypt() 344 if (cbc_blocks > 0) { in cts_cbc_decrypt() 346 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 365 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|
| /linux/arch/arm64/crypto/ |
| H A 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() 332 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 345 cbc_blocks = 1; in cts_cbc_decrypt() 348 if (cbc_blocks > 0) { in cts_cbc_decrypt() 350 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 369 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|
| H A D | sm4-ce-glue.c | 208 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 D | aesni-intel_glue.c | 213 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local 227 cbc_blocks = 1; in cts_cbc_encrypt() 230 if (cbc_blocks > 0) { in cts_cbc_encrypt() 232 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 250 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt() 269 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local 283 cbc_blocks = 1; in cts_cbc_decrypt() 286 if (cbc_blocks > 0) { in cts_cbc_decrypt() 288 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt() 306 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
|