]> git.codecow.com Git - Monocypher.git/commitdiff
Spelled libsodium with lowercase
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 9 Jan 2022 17:42:52 +0000 (18:42 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 11 Jan 2022 01:04:22 +0000 (02:04 +0100)
Just conforming to the original documentation.

CHANGELOG.md
README.md
tests/gen/makefile
tests/gen/x25519.c
tests/speed/speed-sodium.c
tests/tis-ci-vectors.h
tests/utils.h

index ddbf926b64b83ac99f52c4324480b867efe16994..16624082c454964f704068394832914be78fe45a 100644 (file)
 - Changed the authenticated encryption format.  It now conforms to
   RFC 7539, with one exception: it uses XChacha20 initialisation instead
   of the IETF version of Chacha20.  This new format conforms to
-  Libsodium's `crypto_aead_xchacha20poly1305_ietf_encrypt`.
+  libsodium's `crypto_aead_xchacha20poly1305_ietf_encrypt`.
 - Removed `crypto_lock_encrypt()` and `crypto_lock_auth()`.
 - Renamed `crypto_lock_aead_auth()` to `crypto_lock_auth_ad()`.
 - Renamed `crypto_unlock_aead_auth()` to `crypto_unlock_auth_ad()`.
index 5ef3106a1831d4fdb308f137e8c44a4ec0d31004..0e1a82d1f9f714071c56e921d1dabd139efa847f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -17,12 +17,12 @@ the notes at the end.)_
 
 Monocypher is an easy to use, easy to deploy, auditable crypto library
 written in portable C.  It approaches the size of [TweetNaCl][] and the
-speed of [Libsodium][].
+speed of [libsodium][].
 
 [Official site.](https://monocypher.org/)  
 [Official releases.](https://monocypher.org/download/)
 
-[Libsodium]: https://libsodium.org
+[libsodium]: https://libsodium.org
 [TweetNaCl]: https://tweetnacl.cr.yp.to/
 
 
@@ -160,14 +160,14 @@ Speed benchmark
 
 This will give you an idea how fast Monocypher is on your machine.  Make
 sure you run it on the target platform if performance is a concern.  If
-Monocypher is too slow, try Libsodium.  If you're not sure, you can
+Monocypher is too slow, try libsodium.  If you're not sure, you can
 always switch later.
 
 
 Note: the speed benchmark currently requires the POSIX
 `clock_gettime()` function.
 
-There are similar benchmarks for Libsodium, TweetNaCl, LibHydrogen,
+There are similar benchmarks for libsodium, TweetNaCl, LibHydrogen,
 c25519, and ed25519-donna (the portable, 32-bit version):
 
     $ make speed-sodium
@@ -219,7 +219,7 @@ Contributor notes
 If you are reading this, you cloned the GitHub repository.  You miss a
 couple files that ship with the tarball releases:
 
-- The `tests/vectors.h` header.  Generating it requires Libsodium. Go
+- The `tests/vectors.h` header.  Generating it requires libsodium. Go
   to `tests/gen/`, then run `make`.
 - The html version of the manual, generated by the `doc/man2html.sh`
   script.  You will need mandoc.
index f01fdad0bfc406cf02244bc4ad3bfb0f64464044..685d2ea1394c8c1457e8010dc6d915d87eae0a36 100644 (file)
@@ -135,7 +135,7 @@ $(VEC2):
 prelude.h.vec:
        @echo "creating prelude.h.vec"
        @echo "// Generated with hard coded official vectors, and"     >  $@
-       @echo "// random vectors with Libsodium and ed25519-donna."    >> $@
+       @echo "// random vectors with libsodium and ed25519-donna."    >> $@
        @echo "// Download Monocypher's git repository to regenerate." >> $@
        @echo "#include <inttypes.h>"                                  >> $@
        @echo "#include <stddef.h>"                                    >> $@
index e0a21a13aedb4de2a7071a9706a04fe5f673cc1f..c0fb77958e15ecd47f775ee40c40bc3759f5760b 100644 (file)
@@ -61,7 +61,7 @@ static void test()
     crypto_scalarmult_base(pk1, sk1);
     crypto_scalarmult_base(pk2, sk2);
     if (crypto_scalarmult(shared, sk1, pk2)) {
-        fprintf(stderr, "Libsodium rejected the public key\n");
+        fprintf(stderr, "libsodium rejected the public key\n");
         printf(":deadbeef:\n"); // prints a canary to fail subsequent tests
     }
 
index 113992a4edd0f9a608e77e16f45999bc1315b3a7..8111cba21442344785cf5b9225c0b6f151a5e55d 100644 (file)
@@ -137,7 +137,7 @@ static u64 x25519(void)
 
     TIMING_START {
         if (crypto_scalarmult(out, out, in)) {
-            fprintf(stderr, "Libsodium rejected the public key\n");
+            fprintf(stderr, "libsodium rejected the public key\n");
         }
     }
     TIMING_END;
@@ -168,7 +168,7 @@ static u64 edDSA_check(void)
 
     TIMING_START {
         if (crypto_sign_verify_detached(signature, message, 64, pk)) {
-            printf("Libsodium verification failed\n");
+            printf("libsodium verification failed\n");
         }
     }
     TIMING_END;
index 01f19c48c7ecdc608d913392cdfcbcc0e30ad83a..f3146a339dd5cef3ffe230fcb1af92326b3701b7 100644 (file)
@@ -1,5 +1,5 @@
 // Generated with hard coded official vectors, and
-// random vectors with Libsodium and ed25519-donna.
+// random vectors with libsodium and ed25519-donna.
 // Download Monocypher's git repository to regenerate.
 #include <inttypes.h>
 #include <stddef.h>
index cdeb37ef018b20b7fa338bbc8b60a6faa2aae6bf..8040ae0fd26e19653fa10da42644d62ee8a33f9f 100644 (file)
@@ -66,7 +66,7 @@ typedef uint64_t u64;
 #define SODIUM_INIT                                     \
     do {                                                \
         if (sodium_init() == -1) {                      \
-            printf("Libsodium init failed.  Abort.\n"); \
+            printf("libsodium init failed.  Abort.\n"); \
             return 1;                                   \
         }                                               \
     } while (0)