Lines Matching refs:BLOCKCIPHER_BLOCK_SIZE
26 #define BLOCKCIPHER_BLOCK_SIZE 16 macro
47 u8 L[BLOCKCIPHER_BLOCK_SIZE];
60 u8 first_block[BLOCKCIPHER_BLOCK_SIZE];
61 u8 xctr_iv[BLOCKCIPHER_BLOCK_SIZE];
133 u8 hbar[BLOCKCIPHER_BLOCK_SIZE]; in hctr2_setkey()
162 err = crypto_shash_setkey(tctx->polyval, hbar, BLOCKCIPHER_BLOCK_SIZE); in hctr2_setkey()
196 static const u8 padding[BLOCKCIPHER_BLOCK_SIZE] = { 0x1 }; in hctr2_hash_message()
199 const unsigned int bulk_len = req->cryptlen - BLOCKCIPHER_BLOCK_SIZE; in hctr2_hash_message()
201 unsigned int remainder = bulk_len % BLOCKCIPHER_BLOCK_SIZE; in hctr2_hash_message()
222 BLOCKCIPHER_BLOCK_SIZE - remainder); in hctr2_hash_message()
247 crypto_xor(rctx->first_block, digest, BLOCKCIPHER_BLOCK_SIZE); in hctr2_finish()
251 0, BLOCKCIPHER_BLOCK_SIZE, 1); in hctr2_finish()
271 int bulk_len = req->cryptlen - BLOCKCIPHER_BLOCK_SIZE; in hctr2_crypt()
275 if (req->cryptlen < BLOCKCIPHER_BLOCK_SIZE) in hctr2_crypt()
280 0, BLOCKCIPHER_BLOCK_SIZE, 0); in hctr2_crypt()
284 BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
286 BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
296 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
308 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
309 crypto_xor_cpy(rctx->xctr_iv, digest, tctx->L, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
457 if (blockcipher_alg->cra_blocksize != BLOCKCIPHER_BLOCK_SIZE) in hctr2_create_common()
485 inst->alg.base.cra_blocksize = BLOCKCIPHER_BLOCK_SIZE; in hctr2_create_common()