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 stream #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Crypto stream #35

wants to merge 6 commits into from

Conversation

silkeh
Copy link
Contributor

@silkeh silkeh commented Oct 23, 2017

This PR wraps all the crypto_stream functions (for libsodium 1.0.15) in the following packages:

  • crypto_stream
  • crypto/stream/chacha20
  • crypto/stream/chacha20ietf
  • crypto/stream/salsa2012
  • crypto/stream/salsa20
  • crypto/stream/xchacha20
  • crypto/stream/xsalsa20

For performing the size checks from libsodium 1.0.14 the support.CheckSizeMax function is added.

All code includes tests with 100% coverage and is linted with golint.

- Rename all functions
- Add tests for all functions
- Change return types (removed exit status)
- Rename Keygen to KeyGen
- Fix issues with zero-length data
- Use constants instead of getter functions
- Create types for key and nonce
- Rename function to match golang.org/crypto naming
- Add message length checks
- Remove Salsa208 as it is deprecated
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