Lines Matching refs:pad
363 unsigned int len = (i == (x4 - 1) ? last : frag), pad, j; in tls1_1_multi_block_encrypt() local
381 pad = 15 - len % 16; in tls1_1_multi_block_encrypt()
382 for (j = 0; j <= pad; j++) in tls1_1_multi_block_encrypt()
383 *(out++) = pad; in tls1_1_multi_block_encrypt()
384 len += pad + 1; in tls1_1_multi_block_encrypt()
491 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha1_cipher() local
538 pad = out[len - 1]; in aesni_cbc_hmac_sha1_cipher()
543 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha1_cipher()
551 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha1_cipher()
553 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher()
717 res |= (c ^ pad) & ~cmask; /* ... and padding */ in aesni_cbc_hmac_sha1_cipher()
733 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha1_cipher()
734 out = out + len - 1 - pad; in aesni_cbc_hmac_sha1_cipher()
735 for (res = 0, i = 0; i < pad; i++) in aesni_cbc_hmac_sha1_cipher()
736 res |= out[i] ^ pad; in aesni_cbc_hmac_sha1_cipher()