Skip to content
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

chacha20: Allow reinitialisation of existing chacha20 structure #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 20, 2021

  1. chacha20: Allow reinitialisation of existing chacha20 structure

    Rather than requiring a new memory allocation for every use of the
    chacha20 primitive allow an existing chacha20.Cipher to be reinitialised
    with a new key + nonce. This can help avoid allocations in hot paths.
    
    Fixes golang/go#44449
    u1f35c committed Feb 20, 2021
    Configuration menu
    Copy the full SHA
    0bcc0cb View commit details
    Browse the repository at this point in the history