Lines Matching refs:AES_BLOCK_SIZE
27 const u8 in[AES_BLOCK_SIZE],
28 u8 out[AES_BLOCK_SIZE]);
30 const u8 in[AES_BLOCK_SIZE],
31 u8 out[AES_BLOCK_SIZE]);
40 u8 iv[AES_BLOCK_SIZE]);
43 u8 iv[AES_BLOCK_SIZE]);
47 const u8 iv[AES_BLOCK_SIZE], bool enc);
51 u8 iv[AES_BLOCK_SIZE]);
56 u8 tweak[AES_BLOCK_SIZE]);
61 u8 tweak[AES_BLOCK_SIZE]);
149 nbytes & ~(AES_BLOCK_SIZE - 1)); in riscv64_aes_ecb_crypt()
153 nbytes & ~(AES_BLOCK_SIZE - 1)); in riscv64_aes_ecb_crypt()
155 err = skcipher_walk_done(&walk, nbytes & (AES_BLOCK_SIZE - 1)); in riscv64_aes_ecb_crypt()
187 nbytes & ~(AES_BLOCK_SIZE - 1), in riscv64_aes_cbc_crypt()
192 nbytes & ~(AES_BLOCK_SIZE - 1), in riscv64_aes_cbc_crypt()
195 err = skcipher_walk_done(&walk, nbytes & (AES_BLOCK_SIZE - 1)); in riscv64_aes_cbc_crypt()
224 if (req->cryptlen < AES_BLOCK_SIZE) in riscv64_aes_cbc_cts_crypt()
237 cbc_len = round_down(req->cryptlen - AES_BLOCK_SIZE - 1, in riscv64_aes_cbc_cts_crypt()
238 AES_BLOCK_SIZE); in riscv64_aes_cbc_cts_crypt()
293 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in riscv64_aes_ctr_crypt()
294 nblocks = nbytes / AES_BLOCK_SIZE; in riscv64_aes_ctr_crypt()
297 nblocks = DIV_ROUND_UP(nbytes, AES_BLOCK_SIZE); in riscv64_aes_ctr_crypt()
315 (nblocks - ctr32) * AES_BLOCK_SIZE); in riscv64_aes_ctr_crypt()
358 int tail = req->cryptlen % AES_BLOCK_SIZE; in riscv64_aes_xts_crypt()
365 if (req->cryptlen < AES_BLOCK_SIZE) in riscv64_aes_xts_crypt()
390 req->cryptlen - tail - AES_BLOCK_SIZE, in riscv64_aes_xts_crypt()
402 nbytes = round_down(nbytes, AES_BLOCK_SIZE); in riscv64_aes_xts_crypt()
426 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in riscv64_aes_xts_crypt()
461 .cra_blocksize = AES_BLOCK_SIZE,
483 .walksize = 8 * AES_BLOCK_SIZE, /* matches LMUL=8 */
485 .cra_blocksize = AES_BLOCK_SIZE,
498 .ivsize = AES_BLOCK_SIZE,
500 .cra_blocksize = AES_BLOCK_SIZE,
513 .ivsize = AES_BLOCK_SIZE,
514 .walksize = 4 * AES_BLOCK_SIZE, /* matches LMUL=4 */
516 .cra_blocksize = AES_BLOCK_SIZE,
532 .ivsize = AES_BLOCK_SIZE,
533 .chunksize = AES_BLOCK_SIZE,
534 .walksize = 4 * AES_BLOCK_SIZE, /* matches LMUL=4 */
551 .ivsize = AES_BLOCK_SIZE,
552 .chunksize = AES_BLOCK_SIZE,
553 .walksize = 4 * AES_BLOCK_SIZE, /* matches LMUL=4 */
555 .cra_blocksize = AES_BLOCK_SIZE,