Lines Matching defs:msg_len
892 size_t msg_len, ciph_len, sess_len, comp_len, ext_len;
996 msg_len = MBEDTLS_GET_UINT16_BE(ssl->in_len, 0);
1001 msg_len = ssl->in_hslen;
1008 if (msg_len > MBEDTLS_SSL_IN_CONTENT_LEN) {
1014 mbedtls_ssl_in_hdr_len(ssl) + msg_len)) != 0) {
1022 ssl->next_record_offset = msg_len + mbedtls_ssl_in_hdr_len(ssl);
1031 MBEDTLS_SSL_DEBUG_BUF(4, "record contents", buf, msg_len);
1033 ret = ssl->handshake->update_checksum(ssl, buf, msg_len);
1047 if (msg_len < mbedtls_ssl_hs_hdr_len(ssl)) {
1072 if (msg_len != mbedtls_ssl_hs_hdr_len(ssl) + handshake_len) {
1074 (unsigned) msg_len,
1128 msg_len -= mbedtls_ssl_hs_hdr_len(ssl);
1151 if (msg_len < 38) {
1186 sess_len + 34 + 2 > msg_len) { /* 2 for cipherlist length field */
1209 if (cookie_offset + 1 + cookie_len + 2 > msg_len) {
1258 ciph_len + 2 + ciph_offset + 1 > msg_len || /* 1 for comp. alg. len */
1281 comp_len + comp_offset + 1 > msg_len) {
1295 if (msg_len > ext_offset) {
1296 if (msg_len < ext_offset + 2) {
1305 if (msg_len != ext_offset + 2 + ext_len) {