Lines Matching refs:maclen
307 size_t maclen ) = NULL;
710 if( post_avail < transform->maclen ) in mbedtls_ssl_encrypt_buf()
722 memcpy( data + rec->data_len, mac, transform->maclen ); in mbedtls_ssl_encrypt_buf()
742 memcpy( data + rec->data_len, mac, transform->maclen ); in mbedtls_ssl_encrypt_buf()
752 transform->maclen ); in mbedtls_ssl_encrypt_buf()
754 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf()
755 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf()
1002 if( post_avail < transform->maclen) in mbedtls_ssl_encrypt_buf()
1022 memcpy( data + rec->data_len, mac, transform->maclen ); in mbedtls_ssl_encrypt_buf()
1024 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf()
1025 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf()
1496 rec->data_len < minlen + transform->maclen + 1 ) in mbedtls_ssl_decrypt_buf()
1503 transform->maclen ) ); in mbedtls_ssl_decrypt_buf()
1527 rec->data_len -= transform->maclen; in mbedtls_ssl_decrypt_buf()
1542 transform->maclen ); in mbedtls_ssl_decrypt_buf()
1544 transform->maclen ); in mbedtls_ssl_decrypt_buf()
1548 transform->maclen ) != 0 ) in mbedtls_ssl_decrypt_buf()
1635 if( rec->data_len < transform->maclen + padlen + 1 ) in mbedtls_ssl_decrypt_buf()
1641 transform->maclen, in mbedtls_ssl_decrypt_buf()
1648 transform->maclen + padlen + 1 ); in mbedtls_ssl_decrypt_buf()
1764 rec->data_len -= transform->maclen; in mbedtls_ssl_decrypt_buf()
1776 memcpy( mac_peer, data + rec->data_len, transform->maclen ); in mbedtls_ssl_decrypt_buf()
1810 transform->maclen ); in mbedtls_ssl_decrypt_buf()
1821 MBEDTLS_SSL_DEBUG_BUF( 4, "expected mac", mac_expect, transform->maclen ); in mbedtls_ssl_decrypt_buf()
1822 MBEDTLS_SSL_DEBUG_BUF( 4, "message mac", mac_peer, transform->maclen ); in mbedtls_ssl_decrypt_buf()
1826 transform->maclen ) != 0 ) in mbedtls_ssl_decrypt_buf()
5406 transform_expansion += transform->maclen; in mbedtls_ssl_get_record_expansion()