Home
last modified time | relevance | path

Searched refs:cbc_blocks (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/arch/arm/crypto/
Daes-ce-glue.c271 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-v6.1/arch/arm64/crypto/
Daes-glue.c282 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()
/Linux-v6.1/arch/x86/crypto/
Daesni-intel_glue.c384 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local
398 cbc_blocks = 1; in cts_cbc_encrypt()
401 if (cbc_blocks > 0) { in cts_cbc_encrypt()
403 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
421 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
440 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local
454 cbc_blocks = 1; in cts_cbc_decrypt()
457 if (cbc_blocks > 0) { in cts_cbc_decrypt()
459 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
477 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()