Searched refs:has_remainder (Results 1 – 1 of 1) sorted by relevance
84 bool has_remainder) in hctr2_hashed_tweaklen() argument88 if (has_remainder) /* For messages not a multiple of block length */ in hctr2_hashed_tweaklen()109 static int hctr2_hash_tweaklen(struct hctr2_tfm_ctx *tctx, bool has_remainder) in hctr2_hash_tweaklen() argument118 tweak_length_block[0] = cpu_to_le64(TWEAK_SIZE * 8 * 2 + 2 + has_remainder); in hctr2_hash_tweaklen()126 return crypto_shash_export(shash, hctr2_hashed_tweaklen(tctx, has_remainder)); in hctr2_hash_tweaklen()177 bool has_remainder = req->cryptlen % POLYVAL_BLOCK_SIZE; in hctr2_hash_tweak() local180 err = crypto_shash_import(hash_desc, hctr2_hashed_tweaklen(tctx, has_remainder)); in hctr2_hash_tweak()