Lines Matching refs:maclen
1036 if (post_avail < transform->maclen) { in mbedtls_ssl_encrypt_buf()
1095 memcpy(data + rec->data_len, mac, transform->maclen); in mbedtls_ssl_encrypt_buf()
1099 transform->maclen); in mbedtls_ssl_encrypt_buf()
1101 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf()
1102 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf()
1106 mbedtls_platform_zeroize(mac, transform->maclen); in mbedtls_ssl_encrypt_buf()
1384 if (post_avail < transform->maclen) { in mbedtls_ssl_encrypt_buf()
1440 memcpy(data + rec->data_len, mac, transform->maclen); in mbedtls_ssl_encrypt_buf()
1442 rec->data_len += transform->maclen; in mbedtls_ssl_encrypt_buf()
1443 post_avail -= transform->maclen; in mbedtls_ssl_encrypt_buf()
1447 mbedtls_platform_zeroize(mac, transform->maclen); in mbedtls_ssl_encrypt_buf()
1534 if (rec->data_len < transform->maclen) { in mbedtls_ssl_decrypt_buf()
1538 rec->data_len, transform->maclen)); in mbedtls_ssl_decrypt_buf()
1704 rec->data_len < minlen + transform->maclen + 1) { in mbedtls_ssl_decrypt_buf()
1711 transform->maclen)); in mbedtls_ssl_decrypt_buf()
1738 rec->data_len -= transform->maclen; in mbedtls_ssl_decrypt_buf()
1765 transform->maclen); in mbedtls_ssl_decrypt_buf()
1790 transform->maclen); in mbedtls_ssl_decrypt_buf()
1792 transform->maclen); in mbedtls_ssl_decrypt_buf()
1796 transform->maclen) != 0) { in mbedtls_ssl_decrypt_buf()
1812 mbedtls_platform_zeroize(mac_expect, transform->maclen); in mbedtls_ssl_decrypt_buf()
1920 if (rec->data_len < transform->maclen + padlen + 1) { in mbedtls_ssl_decrypt_buf()
1925 transform->maclen, in mbedtls_ssl_decrypt_buf()
1931 transform->maclen + padlen + 1); in mbedtls_ssl_decrypt_buf()
2021 rec->data_len -= transform->maclen; in mbedtls_ssl_decrypt_buf()
2060 transform->maclen); in mbedtls_ssl_decrypt_buf()
2064 MBEDTLS_SSL_DEBUG_BUF(4, "expected mac", mac_expect, transform->maclen); in mbedtls_ssl_decrypt_buf()
2065 MBEDTLS_SSL_DEBUG_BUF(4, "message mac", mac_peer, transform->maclen); in mbedtls_ssl_decrypt_buf()
2069 transform->maclen) != 0) { in mbedtls_ssl_decrypt_buf()
2078 mbedtls_platform_zeroize(mac_peer, transform->maclen); in mbedtls_ssl_decrypt_buf()
2079 mbedtls_platform_zeroize(mac_expect, transform->maclen); in mbedtls_ssl_decrypt_buf()
5476 transform_expansion += transform->maclen; in mbedtls_ssl_get_record_expansion()
5508 transform_expansion += transform->maclen; in mbedtls_ssl_get_record_expansion()