mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
6048226d1e
Also add a EVP_CIPHER_CTX_safe structure to manage allocating and cleaning up EVP_CIPHER_CTX struct. IN older versions of OpenSSL you could just declare an EVP_CIPHER_CTX struct on the stack. Now you have to go through a generic allocation mechanism!? SO we're going to be doing a heap allocation for every single packet. That is....terrible. We should try to find a way around this, even if it's gross, because doing a heap allocation per packet is not acceptible.
https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/CAVP-TESTING-BLOCK-CIPHER-MODES https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Algorithm-Validation-Program/documents/mac/gcmtestvectors.zip