Lines Matching refs:pseudo_hdr
1522 unsigned char pseudo_hdr[13]; in ssl_encrypt_buf() local
1526 memcpy( pseudo_hdr + 0, ssl->out_ctr, 8 ); in ssl_encrypt_buf()
1527 memcpy( pseudo_hdr + 8, ssl->out_hdr, 3 ); in ssl_encrypt_buf()
1528 pseudo_hdr[11] = (unsigned char)( ( ssl->out_msglen >> 8 ) & 0xFF ); in ssl_encrypt_buf()
1529 pseudo_hdr[12] = (unsigned char)( ( ssl->out_msglen ) & 0xFF ); in ssl_encrypt_buf()
1531 MBEDTLS_SSL_DEBUG_BUF( 4, "MAC'd meta-data", pseudo_hdr, 13 ); in ssl_encrypt_buf()
1533 mbedtls_md_hmac_update( &ssl->transform_out->md_ctx_enc, pseudo_hdr, 13 ); in ssl_encrypt_buf()
1735 unsigned char pseudo_hdr[13]; in ssl_decrypt_buf() local
1742 memcpy( pseudo_hdr + 0, ssl->in_ctr, 8 ); in ssl_decrypt_buf()
1743 memcpy( pseudo_hdr + 8, ssl->in_hdr, 3 ); in ssl_decrypt_buf()
1744 pseudo_hdr[11] = (unsigned char)( ( ssl->in_msglen >> 8 ) & 0xFF ); in ssl_decrypt_buf()
1745 pseudo_hdr[12] = (unsigned char)( ( ssl->in_msglen ) & 0xFF ); in ssl_decrypt_buf()
1747 MBEDTLS_SSL_DEBUG_BUF( 4, "MAC'd meta-data", pseudo_hdr, 13 ); in ssl_decrypt_buf()
1749 mbedtls_md_hmac_update( &ssl->transform_in->md_ctx_dec, pseudo_hdr, 13 ); in ssl_decrypt_buf()