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

Crypto::SecretBox - secret key crypto with NaCL #6

Merged
merged 4 commits into from
Jan 21, 2013

Conversation

namelessjon
Copy link
Contributor

This implements bindings to the crypto_secret_box family of functions
in NaCl. They offer authenticated secret, rather than shared, key
cryptography, using the same primitives (xSalsa and Poly1305) as the
public/private key crypto in Crypto::Box.

Fixes #5.

Also, this PR tidies things up with the renames we talked about, Boxer => Box, SecretKey => PrivateKey, #unbox => #open.

Also #unbox => #open.  And fixing some specs.
This avoids confusion with SecretBox.  Though public and private don't
abbreviate quite so nicely.  Ah well, such is life.
Since they can be, as long as we use the right key for the secretbox...
This implements bindings to the `crypto_secret_box` family of functions
in NaCl.  They offer authenticated secret, rather than shared, key
cryptography, using the same primitives (xSalsa and Poly1305) as the
public/private key crypto in Crypto::Box.
namelessjon added a commit that referenced this pull request Jan 21, 2013
Crypto::SecretBox - secret key crypto with NaCL
@namelessjon namelessjon merged commit 964c012 into RubyCrypto:master Jan 21, 2013
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.

Needs crypto_secretbox bindings
1 participant