Skip to content

Keep pre-warmed encryption state #55

Open

Description

@bifurcation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions