Lines Matching refs:headspace
331 int headspace = 0; in plaintext_offset() local
335 headspace += RCMD_LEN_SZ; in plaintext_offset()
339 headspace += RCMD_LEN_SZ; in plaintext_offset()
344 headspace += null_hash.hash_len + null_hash.confound_len; in plaintext_offset()
347 headspace += crc32_hash.hash_len + crc32_hash.confound_len; in plaintext_offset()
350 headspace += md5_hash.hash_len + md5_hash.confound_len; in plaintext_offset()
353 headspace += sha1_hash.confound_len; in plaintext_offset()
356 headspace += md5_hash.hash_len + md5_hash.confound_len; in plaintext_offset()
360 headspace += DEFAULT_AES_BLOCKLEN; in plaintext_offset()
367 return (headspace); in plaintext_offset()
2961 size_t headspace; in encrypt_block() local
2991 headspace = plaintext_offset(&tmi->enc_data); in encrypt_block()
3014 ASSERT(cbp->b_rptr + P2ROUNDUP(plainlen+headspace, 8) in encrypt_block()
3017 cbp->b_rptr = DB_BASE(cbp) + headspace; in encrypt_block()
3043 (cbp->b_rptr - headspace < DB_BASE(cbp))) { in encrypt_block()
3044 ovbcopy(cbp->b_rptr, DB_BASE(cbp) + headspace, in encrypt_block()
3046 cbp->b_rptr = DB_BASE(cbp) + headspace; in encrypt_block()
3051 ASSERT(cbp->b_rptr - headspace >= DB_BASE(cbp)); in encrypt_block()