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

Add XChaCha20Poly1305 box #235

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

Conversation

vcsjones
Copy link

This adds support for an XChaCha20Poly1305 sealed box.

It can either be used stand-alone, or it can be passed to the the SimpleBox initializer which accepts an existing box and used with SimpleBox. It does not change the default SimpleBox algorithm of Salsa20.


module RbNaCl
module SecretBoxes
# The XChaCha20Poly1305 class boxes and unboxes messages using the XChaCha20Poly1305 algorithm
Copy link
Contributor

@tarcieri tarcieri Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be good to note there are two different flavors of algorithm calling themselves XChaCha20Poly1305

  • crypto_secretbox / djb-style: this is effectively the crypto_secretbox function but with XChaCha20 swapped for XSalsa20, and what is being implemented here
  • draft-irtf-cfrg-xchacha: uses the IETF flavor of ChaCha20

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.

2 participants