Lines Matching refs:pad
373 unsigned int len = (i == (x4 - 1) ? last : frag), pad, j; in tls1_1_multi_block_encrypt() local
394 pad = 15 - len % 16; in tls1_1_multi_block_encrypt()
395 for (j = 0; j <= pad; j++) in tls1_1_multi_block_encrypt()
396 *(out++) = pad; in tls1_1_multi_block_encrypt()
397 len += pad + 1; in tls1_1_multi_block_encrypt()
523 unsigned int res, maxpad, pad, bitlen; in aesni_cbc_hmac_sha256_cipher() local
542 pad = out[len - 1]; in aesni_cbc_hmac_sha256_cipher()
547 mask = constant_time_ge(maxpad, pad); in aesni_cbc_hmac_sha256_cipher()
555 pad = constant_time_select(mask, pad, maxpad); in aesni_cbc_hmac_sha256_cipher()
557 inp_len = len - (SHA256_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha256_cipher()
715 res |= (c ^ pad) & ~cmask; /* ... and padding */ in aesni_cbc_hmac_sha256_cipher()
731 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha256_cipher()
732 out = out + len - 1 - pad; in aesni_cbc_hmac_sha256_cipher()
733 for (res = 0, i = 0; i < pad; i++) in aesni_cbc_hmac_sha256_cipher()
734 res |= out[i] ^ pad; in aesni_cbc_hmac_sha256_cipher()