Lines Matching refs:padlen
149 unsigned char padlen; /* excluding the padding_length byte */
174 * The +1 is for the padding_length byte, not counted in padlen. */
175 padlen = block_size - (t0.maclen + 1) % block_size;
179 padlen += block_size * ((pad_max_len - padlen) / block_size);
182 padlen = length_selector;
185 * The +1 is for the padding_length byte, not counted in padlen. */
186 plaintext_len = block_size - (padlen + t0.maclen + 1) % block_size;
193 + padlen + 1;
223 memset(rec.buf + rec.data_offset + rec.data_len, padlen, padlen + 1);
224 rec.data_len += padlen + 1;
271 * the case where the announced padlen would be larger than the buffer
281 for (i = padlen; i <= pad_max_len; i++) {
290 memset(buf + buflen - padlen - 1, i, padlen + 1);
300 exp_ret = (i == padlen) ? 0 : MBEDTLS_ERR_SSL_INVALID_MAC;