Lines Matching refs:padlen
3486 unsigned char padlen; /* excluding the padding_length byte */
3510 * The +1 is for the padding_length byte, not counted in padlen. */
3511 padlen = block_size - ( t0.maclen + 1 ) % block_size;
3515 padlen += block_size * ( ( pad_max_len - padlen ) / block_size );
3519 padlen = length_selector;
3522 * The +1 is for the padding_length byte, not counted in padlen. */
3523 plaintext_len = block_size - ( padlen + t0.maclen + 1 ) % block_size;
3530 + padlen + 1;
3577 memset( rec.buf + rec.data_offset + rec.data_len, padlen, padlen + 1 );
3578 rec.data_len += padlen + 1;
3628 * the case where the announced padlen would be larger than the buffer
3638 for( i = padlen; i <= pad_max_len; i++ )
3648 memset( buf + buflen - padlen - 1, i, padlen + 1 );
3659 exp_ret = ( i == padlen ) ? 0 : MBEDTLS_ERR_SSL_INVALID_MAC;