Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/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()
Dsm4-ce-glue.c220 int cbc_blocks; in sm4_cbc_cts_crypt() local
234 cbc_blocks = DIV_ROUND_UP(req->cryptlen, SM4_BLOCK_SIZE) - 2; in sm4_cbc_cts_crypt()
235 if (cbc_blocks) { in sm4_cbc_cts_crypt()
237 cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
252 req->cryptlen - cbc_blocks * SM4_BLOCK_SIZE, in sm4_cbc_cts_crypt()
/linux-6.6.21/arch/x86/crypto/
Daesni-intel_glue.c383 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local
397 cbc_blocks = 1; in cts_cbc_encrypt()
400 if (cbc_blocks > 0) { in cts_cbc_encrypt()
402 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
420 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
439 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local
453 cbc_blocks = 1; in cts_cbc_decrypt()
456 if (cbc_blocks > 0) { in cts_cbc_decrypt()
458 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
476 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()