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_SIZ in cts_cbc_decrypt() [all...] |
/linux/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_SIZ in cts_cbc_decrypt() [all...] |
H A D | sm4-ce-glue.c | 213 int cbc_blocks; in sm4_cbc_cts_crypt() local 227 cbc_blocks = DIV_ROUND_UP(req->cryptlen, SM4_BLOCK_SIZE) - 2; in sm4_cbc_cts_crypt() 228 if (cbc_blocks) { in sm4_cbc_cts_crypt() 230 cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt() 245 req->cryptlen - cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
|
/linux/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_SIZ in cts_cbc_decrypt() [all...] |