Home
last modified time | relevance | path

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

/linux/arch/arm/crypto/
A 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/arch/arm64/crypto/
A 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()
A Dsm4-ce-glue.c215 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/arch/x86/crypto/
A Daesni-intel_glue.c270 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt() local
284 cbc_blocks = 1; in cts_cbc_encrypt()
287 if (cbc_blocks > 0) { in cts_cbc_encrypt()
289 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
307 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
326 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_decrypt() local
340 cbc_blocks = 1; in cts_cbc_decrypt()
343 if (cbc_blocks > 0) { in cts_cbc_decrypt()
345 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
363 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()

Completed in 13 milliseconds