Lines Matching refs:AES_BLOCK_SIZE

42 #define AES_BLOCK_MASK	(~(AES_BLOCK_SIZE - 1))
307 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt()
329 nbytes &= AES_BLOCK_SIZE - 1; in ecb_decrypt()
351 nbytes &= AES_BLOCK_SIZE - 1; in cbc_encrypt()
373 nbytes &= AES_BLOCK_SIZE - 1; in cbc_decrypt()
384 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt()
395 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_encrypt()
396 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_encrypt()
403 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
410 if (req->cryptlen == 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()
451 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_decrypt()
452 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_decrypt()
459 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
466 if (req->cryptlen == AES_BLOCK_SIZE) in cts_cbc_decrypt()
477 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
514 u8 keystream[AES_BLOCK_SIZE]; in ctr_crypt()
535 crypto_inc(walk.iv, AES_BLOCK_SIZE); in ctr_crypt()
563 u8 keystream[AES_BLOCK_SIZE]; in xctr_crypt()
568 __le32 block[AES_BLOCK_SIZE / sizeof(__le32)]; in xctr_crypt()
582 memcpy(block, walk.iv, AES_BLOCK_SIZE); in xctr_crypt()
583 block[0] ^= cpu_to_le32(1 + byte_ctr / AES_BLOCK_SIZE); in xctr_crypt()
910 int tail = req->cryptlen % AES_BLOCK_SIZE; in xts_crypt()
915 if (req->cryptlen < AES_BLOCK_SIZE) in xts_crypt()
923 int blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in xts_crypt()
932 blocks * AES_BLOCK_SIZE, req->iv); in xts_crypt()
951 nbytes &= ~(AES_BLOCK_SIZE - 1); in xts_crypt()
977 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in xts_crypt()
1015 .cra_blocksize = AES_BLOCK_SIZE,
1036 .cra_blocksize = AES_BLOCK_SIZE,
1051 .cra_blocksize = AES_BLOCK_SIZE,
1057 .ivsize = AES_BLOCK_SIZE,
1067 .cra_blocksize = AES_BLOCK_SIZE,
1073 .ivsize = AES_BLOCK_SIZE,
1074 .walksize = 2 * AES_BLOCK_SIZE,
1091 .ivsize = AES_BLOCK_SIZE,
1092 .chunksize = AES_BLOCK_SIZE,
1103 .cra_blocksize = AES_BLOCK_SIZE,
1109 .ivsize = AES_BLOCK_SIZE,
1110 .walksize = 2 * AES_BLOCK_SIZE,
1137 .ivsize = AES_BLOCK_SIZE,
1138 .chunksize = AES_BLOCK_SIZE,