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

Minor algorithm changes #596

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Minor algorithm changes #596

merged 2 commits into from
Sep 5, 2024

Conversation

tomaswolf
Copy link
Member

  • strnup761x25519-sha512 is now an official IANA name
  • fix key size of ChaCha20-Poly1305 cipher

It got assigned a IANA "codepoint".[1] The former "@openssh.com" name is
now a legacy name.

[1] https://www.iana.org/assignments/ssh-parameters/ssh-parameters.xhtml#ssh-parameters-16
64 bytes is 512 bits, not 256. Also remove the "kdfSize" parameter from
the constructor. It's pointless and just a source of hard to spot
consistency errors if one has to give the key size twice, first in
bytes, then in bits.

Just give the key size in bits, and compute the number of bytes.
@tomaswolf tomaswolf merged commit f039b68 into apache:master Sep 5, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant