cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

Use fixed pool to improve performance

Open reaperhulk opened this issue 3 years ago • 1 comments

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.

reaperhulk avatar Sep 05 '22 12:09 reaperhulk

#7601 did this for ChaCha

reaperhulk avatar Sep 15 '22 02:09 reaperhulk

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.

reaperhulk avatar Oct 12 '22 14:10 reaperhulk