Skip to content

Keep pre-warmed encryption state #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bifurcation opened this issue Apr 21, 2025 · 0 comments
Open

Keep pre-warmed encryption state #55

bifurcation opened this issue Apr 21, 2025 · 0 comments

Comments

@bifurcation
Copy link
Contributor

Encryption goes faster when you keep state between invocations of the cipher. For example, the OpenSSL EVP API allows this via the EVP_CIPHER_CTX_reset method, which resets the cipher state for a new operation, but keeps what is reusable.

On the one hand, this would probably make things faster. On the other hand, it's in tension with #54 because the state object would have different contents depending on the back-end library, something that could be difficult to achieve especially without dynamic allocations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant