From ac15f867050a71db37cf2ad5946fdd1c2bdb9d33 Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Sat, 10 Aug 2019 03:58:30 -0700 Subject: [PATCH] Add Nonce reuse detection. Build example as part of tests. --- .travis.yml | 1 + README.md | 2 ++ shard.yml | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 907ccd1..61bbdde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ cache: script: - crystal spec - crystal tool format --check +- shards build - crystal docs deploy: provider: pages diff --git a/README.md b/README.md index 0477700..184d7ea 100644 --- a/README.md +++ b/README.md @@ -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`) diff --git a/shard.yml b/shard.yml index 710755e..c094720 100644 --- a/shard.yml +++ b/shard.yml @@ -5,4 +5,9 @@ authors: - Andrew Hamon - 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