Lines Matching refs:BLOCKCIPHER_BLOCK_SIZE
25 #define BLOCKCIPHER_BLOCK_SIZE 16 macro
46 u8 L[BLOCKCIPHER_BLOCK_SIZE];
50 u8 first_block[BLOCKCIPHER_BLOCK_SIZE];
51 u8 xctr_iv[BLOCKCIPHER_BLOCK_SIZE];
100 u8 hbar[BLOCKCIPHER_BLOCK_SIZE]; in hctr2_setkey()
159 const unsigned int bulk_len = req->cryptlen - BLOCKCIPHER_BLOCK_SIZE; in hctr2_hash_message()
173 if (req->cryptlen % BLOCKCIPHER_BLOCK_SIZE) in hctr2_hash_message()
191 crypto_xor(rctx->first_block, digest, BLOCKCIPHER_BLOCK_SIZE); in hctr2_finish()
195 0, BLOCKCIPHER_BLOCK_SIZE, 1); in hctr2_finish()
215 int bulk_len = req->cryptlen - BLOCKCIPHER_BLOCK_SIZE; in hctr2_crypt()
218 if (req->cryptlen < BLOCKCIPHER_BLOCK_SIZE) in hctr2_crypt()
223 0, BLOCKCIPHER_BLOCK_SIZE, 0); in hctr2_crypt()
227 BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
229 BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
235 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
247 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
248 crypto_xor_cpy(rctx->xctr_iv, digest, tctx->L, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
375 if (blockcipher_alg->cra_blocksize != BLOCKCIPHER_BLOCK_SIZE) in hctr2_create_common()
389 inst->alg.base.cra_blocksize = BLOCKCIPHER_BLOCK_SIZE; in hctr2_create_common()