Lines Matching refs:digest
194 u8 digest[POLYVAL_DIGEST_SIZE]) in hctr2_hash_message()
226 return crypto_shash_final(hash_desc, digest); in hctr2_hash_message()
234 u8 digest[POLYVAL_DIGEST_SIZE]; in hctr2_finish() local
244 err = hctr2_hash_message(req, rctx->bulk_part_dst, digest); in hctr2_finish()
247 crypto_xor(rctx->first_block, digest, BLOCKCIPHER_BLOCK_SIZE); in hctr2_finish()
270 u8 digest[POLYVAL_DIGEST_SIZE]; in hctr2_crypt() local
293 err = hctr2_hash_message(req, rctx->bulk_part_src, digest); in hctr2_crypt()
296 crypto_xor(digest, rctx->first_block, BLOCKCIPHER_BLOCK_SIZE); in hctr2_crypt()
302 digest); in hctr2_crypt()
305 digest); 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()