cryptography
cryptography copied to clipboard
Use fixed pool to improve performance
We added fixed pool to allow us to improve performance in some scenarios (e.g. the AEADs) where repeated invocations with the same key may occur (e.g. home-assistant's use of ChaCha20Poly1305 for HomeKit devices), but we haven't actually implemented it. We should do that.
#7601 did this for ChaCha
We've implemented this for ChaCha but OpenSSL handles its internal contexts differently for each cipher/mode and the rest of the AEADs have been resistant to improvement. For now we'll call this done and we can revisit if needed.