Lines Matching refs:AES_BLOCK_SIZE

42 #define AES_BLOCK_MASK	(~(AES_BLOCK_SIZE - 1))
306 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt()
328 nbytes &= AES_BLOCK_SIZE - 1; in ecb_decrypt()
350 nbytes &= AES_BLOCK_SIZE - 1; in cbc_encrypt()
372 nbytes &= AES_BLOCK_SIZE - 1; in cbc_decrypt()
383 int cbc_blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in cts_cbc_encrypt()
394 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_encrypt()
395 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_encrypt()
402 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_encrypt()
409 if (req->cryptlen == 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()
450 if (req->cryptlen <= AES_BLOCK_SIZE) { in cts_cbc_decrypt()
451 if (req->cryptlen < AES_BLOCK_SIZE) in cts_cbc_decrypt()
458 cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
465 if (req->cryptlen == AES_BLOCK_SIZE) in cts_cbc_decrypt()
476 req->cryptlen - cbc_blocks * AES_BLOCK_SIZE, in cts_cbc_decrypt()
513 u8 keystream[AES_BLOCK_SIZE]; in ctr_crypt()
534 crypto_inc(walk.iv, AES_BLOCK_SIZE); in ctr_crypt()
562 u8 keystream[AES_BLOCK_SIZE]; in xctr_crypt()
567 __le32 block[AES_BLOCK_SIZE / sizeof(__le32)]; in xctr_crypt()
581 memcpy(block, walk.iv, AES_BLOCK_SIZE); in xctr_crypt()
582 block[0] ^= cpu_to_le32(1 + byte_ctr / AES_BLOCK_SIZE); in xctr_crypt()
907 int tail = req->cryptlen % AES_BLOCK_SIZE; in xts_crypt()
912 if (req->cryptlen < AES_BLOCK_SIZE) in xts_crypt()
920 int blocks = DIV_ROUND_UP(req->cryptlen, AES_BLOCK_SIZE) - 2; in xts_crypt()
929 blocks * AES_BLOCK_SIZE, req->iv); in xts_crypt()
948 nbytes &= ~(AES_BLOCK_SIZE - 1); in xts_crypt()
974 skcipher_request_set_crypt(req, src, dst, AES_BLOCK_SIZE + tail, in xts_crypt()
1012 .cra_blocksize = AES_BLOCK_SIZE,
1033 .cra_blocksize = AES_BLOCK_SIZE,
1048 .cra_blocksize = AES_BLOCK_SIZE,
1054 .ivsize = AES_BLOCK_SIZE,
1064 .cra_blocksize = AES_BLOCK_SIZE,
1070 .ivsize = AES_BLOCK_SIZE,
1071 .walksize = 2 * AES_BLOCK_SIZE,
1088 .ivsize = AES_BLOCK_SIZE,
1089 .chunksize = AES_BLOCK_SIZE,
1100 .cra_blocksize = AES_BLOCK_SIZE,
1106 .ivsize = AES_BLOCK_SIZE,
1107 .walksize = 2 * AES_BLOCK_SIZE,
1134 .ivsize = AES_BLOCK_SIZE,
1135 .chunksize = AES_BLOCK_SIZE,