Add Nonce reuse detection.

Build example as part of tests.
master
Didactic Drunk 2019-08-10 03:58:30 -07:00
parent 2d0ed351ea
commit ac15f86705
3 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@ cache:
script:
- crystal spec
- crystal tool format --check
- shards build
- crystal docs
deploy:
provider: pages

View File

@ -21,6 +21,7 @@ Crystal bindings for the [libsodium API](https://libsodium.gitbook.io/doc/)
- [x] [Sealed Box](https://libsodium.gitbook.io/doc/public-key_cryptography/sealed_boxes)
- [ ] [Combined Signatures](https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures)
- [x] ☑ [Detached Signatures](https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures)
- [ ] [Pre-hashed Signatures](https://libsodium.gitbook.io/doc/public-key_cryptography/public-key_signatures)
- [Secret-Key Cryptography](https://libsodium.gitbook.io/doc/secret-key_cryptography)
- Secret Box
- [x] ☑ [Combined mode](https://libsodium.gitbook.io/doc/secret-key_cryptography/authenticated_encryption)
@ -52,6 +53,7 @@ Crystal bindings for the [libsodium API](https://libsodium.gitbook.io/doc/)
- [ ] Padding
- Library features
- [x] Faster builds by requiring what you need (`require "sodium/secret_box"`)
- [x] Nonce reuse detection.
- [x] All SecretKey's held in libsodium guarded memory.
- [ ] Controlled memory wiping (by calling `.close`)

View File

@ -5,4 +5,9 @@ authors:
- Andrew Hamon <andrew@hamon.cc>
- Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com>
crystal: 0.29.0
targets:
pwhash_selector:
main: examples/pwhash_selector.cr
libraries:
libsodium: ">= 1.0.18"
license: MIT