Lines Matching refs:frag
137 unsigned int frag, last, packlen, i; in tls1_multi_block_encrypt() local
151 frag = (unsigned int)inp_len >> (1 + n4x); in tls1_multi_block_encrypt()
152 last = (unsigned int)inp_len + frag - (frag << (1 + n4x)); in tls1_multi_block_encrypt()
153 if (last > frag && ((last + 13 + 9) % 64) < (x4 - 1)) { in tls1_multi_block_encrypt()
154 frag++; in tls1_multi_block_encrypt()
158 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in tls1_multi_block_encrypt()
170 ciph_d[i].inp = hash_d[i].ptr = hash_d[i - 1].ptr + frag; in tls1_multi_block_encrypt()
182 unsigned int len = (i == (x4 - 1) ? last : frag); in tls1_multi_block_encrypt()
228 minblocks = ((frag <= last ? frag : last) - (64 - 13)) / 64; in tls1_multi_block_encrypt()
258 unsigned int len = (i == (x4 - 1) ? last : frag), in tls1_multi_block_encrypt()
325 unsigned int len = (i == (x4 - 1) ? last : frag), pad, j; in tls1_multi_block_encrypt()
359 inp += frag; in tls1_multi_block_encrypt()
719 unsigned int frag, last, packlen, inp_len; in aesni_cbc_hmac_sha1_tls1_multiblock_aad() local
745 frag = inp_len >> n4x; in aesni_cbc_hmac_sha1_tls1_multiblock_aad()
746 last = inp_len + frag - (frag << n4x); in aesni_cbc_hmac_sha1_tls1_multiblock_aad()
747 if (last > frag && ((last + 13 + 9) % 64 < (x4 - 1))) { in aesni_cbc_hmac_sha1_tls1_multiblock_aad()
748 frag++; in aesni_cbc_hmac_sha1_tls1_multiblock_aad()
752 packlen = 5 + 16 + ((frag + 20 + 16) & -16); in aesni_cbc_hmac_sha1_tls1_multiblock_aad()