Lines Matching refs:frag
141 unsigned int frag, last, packlen, i; in tls1_multi_block_encrypt() local
155 frag = (unsigned int)inp_len >> (1 + n4x); in tls1_multi_block_encrypt()
156 last = (unsigned int)inp_len + frag - (frag << (1 + n4x)); in tls1_multi_block_encrypt()
157 if (last > frag && ((last + 13 + 9) % 64) < (x4 - 1)) { in tls1_multi_block_encrypt()
158 frag++; in tls1_multi_block_encrypt()
162 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in tls1_multi_block_encrypt()
174 ciph_d[i].inp = hash_d[i].ptr = hash_d[i - 1].ptr + frag; in tls1_multi_block_encrypt()
187 unsigned int len = (i == (x4 - 1) ? last : frag); in tls1_multi_block_encrypt()
236 minblocks = ((frag <= last ? frag : last) - (64 - 13)) / 64; in tls1_multi_block_encrypt()
266 unsigned int len = (i == (x4 - 1) ? last : frag), in tls1_multi_block_encrypt()
345 unsigned int len = (i == (x4 - 1) ? last : frag), pad, j; in tls1_multi_block_encrypt()
382 inp += frag; in tls1_multi_block_encrypt()
772 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha256_tls1_multiblock_aad() local
797 frag = inp_len >> n4x; in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
798 last = inp_len + frag - (frag << n4x); in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
799 if (last > frag && ((last + 13 + 9) % 64 < (x4 - 1))) { in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
800 frag++; in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
804 packlen = 5 + 16 + ((frag + 32 + 16) & -16); in aesni_cbc_hmac_sha256_tls1_multiblock_aad()