mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-10 17:20:52 +02:00
6303af86ac
wolfssl_local_GetRecordSize() runs BuildMessage(sizeOnly=1) on every wolfSSL_write hot path. For AEAD ciphers the overhead is constant per connection framing state, so cache (recordSz - payloadSz) on WOLFSSL and invalidate in SetKeysSide(), at cidInfo->tx assignment, and in wolfSSL_clear(). BuildMessage stays the single source of truth. Add test_record_size_matches_build_message (cross-checks every built cipher over TLS/DTLS +/- CID against BuildMessage) and test_record_size_cache_invalidated_on_renegotiation.
Before creating any new configure files (.conf) read the CONF_FILES_README.md