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