Lines Matching refs:maclen
207 size_t maclen ) = NULL;
683 transform->maclen = 0; in mbedtls_ssl_derive_keys()
704 transform->maclen = mbedtls_md_get_size( md_info ); in mbedtls_ssl_derive_keys()
713 transform->maclen = MBEDTLS_SSL_TRUNCATED_HMAC_LEN; in mbedtls_ssl_derive_keys()
721 transform->minlen = transform->maclen; in mbedtls_ssl_derive_keys()
733 transform->minlen = transform->maclen in mbedtls_ssl_derive_keys()
739 transform->minlen = transform->maclen in mbedtls_ssl_derive_keys()
741 - transform->maclen % cipher_info->block_size; in mbedtls_ssl_derive_keys()
767 transform->maclen ) ); in mbedtls_ssl_derive_keys()
775 key1 = keyblk + transform->maclen * 2; in mbedtls_ssl_derive_keys()
776 key2 = keyblk + transform->maclen * 2 + transform->keylen; in mbedtls_ssl_derive_keys()
779 mac_dec = keyblk + transform->maclen; in mbedtls_ssl_derive_keys()
795 key1 = keyblk + transform->maclen * 2 + transform->keylen; in mbedtls_ssl_derive_keys()
796 key2 = keyblk + transform->maclen * 2; in mbedtls_ssl_derive_keys()
798 mac_enc = keyblk + transform->maclen; in mbedtls_ssl_derive_keys()
820 if( transform->maclen > sizeof transform->mac_enc ) in mbedtls_ssl_derive_keys()
826 memcpy( transform->mac_enc, mac_enc, transform->maclen ); in mbedtls_ssl_derive_keys()
827 memcpy( transform->mac_dec, mac_dec, transform->maclen ); in mbedtls_ssl_derive_keys()
835 mbedtls_md_hmac_starts( &transform->md_ctx_enc, mac_enc, transform->maclen ); in mbedtls_ssl_derive_keys()
836 mbedtls_md_hmac_starts( &transform->md_ctx_dec, mac_dec, transform->maclen ); in mbedtls_ssl_derive_keys()
856 transform->maclen ) ) != 0 ) in mbedtls_ssl_derive_keys()
869 transform->maclen, transform->keylen, in mbedtls_ssl_derive_keys()
1314 ssl->transform_out->maclen ); in ssl_encrypt_buf()
1316 ssl->out_msglen += ssl->transform_out->maclen; in ssl_encrypt_buf()
1540 ssl->out_msglen += ssl->transform_out->maclen; in ssl_encrypt_buf()
1715 ssl->in_msglen < minlen + ssl->transform_in->maclen + 1 ) in ssl_decrypt_buf()
1720 ssl->transform_in->maclen ) ); in ssl_decrypt_buf()
1739 dec_msglen -= ssl->transform_in->maclen; in ssl_decrypt_buf()
1740 ssl->in_msglen -= ssl->transform_in->maclen; in ssl_decrypt_buf()
1756 ssl->transform_in->maclen ); in ssl_decrypt_buf()
1758 ssl->transform_in->maclen ); in ssl_decrypt_buf()
1761 ssl->transform_in->maclen ) != 0 ) in ssl_decrypt_buf()
1825 if( ssl->in_msglen < ssl->transform_in->maclen + padlen && in ssl_decrypt_buf()
1830 ssl->in_msglen, ssl->transform_in->maclen, padlen ) ); in ssl_decrypt_buf()
1874 ssl->transform_in->maclen ); in ssl_decrypt_buf()
1923 ssl->in_msglen -= ssl->transform_in->maclen; in ssl_decrypt_buf()
1928 memcpy( tmp, ssl->in_msg + ssl->in_msglen, ssl->transform_in->maclen ); in ssl_decrypt_buf()
1984 MBEDTLS_SSL_DEBUG_BUF( 4, "message mac", tmp, ssl->transform_in->maclen ); in ssl_decrypt_buf()
1986 ssl->transform_in->maclen ); in ssl_decrypt_buf()
1989 ssl->transform_in->maclen ) != 0 ) in ssl_decrypt_buf()
6243 transform_expansion = transform->maclen in mbedtls_ssl_get_record_expansion()