From 365e65c2eba53f8d446df293c60eef6debcf3d02 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 20 Jul 2018 13:38:55 -0400 Subject: [PATCH] Whitespace check-in --- naclite.h | 4 ++-- sha.cpp | 2 +- validat4.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/naclite.h b/naclite.h index 6f069897..410dd694 100644 --- a/naclite.h +++ b/naclite.h @@ -3,7 +3,7 @@ // Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, // Tanja Lange, Peter Schwabe and Sjaak Smetsers. -// The Tweet API was added to the Crypto++ library to cross-validate results. +// The Tweet API was added to the Crypto++ library to cross-validate results. // We debated over putting it in the Test namespace, but settled for the NaCl // namespace to segreate it from other parts of the library. @@ -384,7 +384,7 @@ int crypto_sign_keypair(byte *pk, byte *sk); /// 32-byte secret key. The function does not backfill the tail bytes of the /// secret key with the calculated public key. /// \details crypto_sign_sk2pk() is not part of libsodium or Tweet API. It was -/// added for interop with the I2P Java library. +/// added for interop with some anonymous routing protocols. /// \returns 0 on success, non-0 otherwise /// \sa NaCl crypto_sign documentation /// \since Crypto++ 7.1 diff --git a/sha.cpp b/sha.cpp index 69577f3d..aeaf95b0 100644 --- a/sha.cpp +++ b/sha.cpp @@ -1189,7 +1189,7 @@ void SHA512_HashBlock_CXX(word64 *state, const word64 *data) /* Copy context->state[] to working vars */ std::memcpy(T, state, sizeof(T)); - + /* Solaris/Sparc64 crash */ std::memcpy(D, data, sizeof(D)); diff --git a/validat4.cpp b/validat4.cpp index 71b791e0..8279ceb5 100644 --- a/validat4.cpp +++ b/validat4.cpp @@ -455,11 +455,11 @@ bool TestCryptoSignKeys() { fail = (crypto_sign_keypair(pk, sk) != 0); pass = !fail && pass; - + byte xk[crypto_sign_PUBLICKEYBYTES]; fail = (crypto_sign_sk2pk(xk, sk) != 0); pass = !fail && pass; - + fail = std::memcmp(xk, pk, sizeof(xk)) != 0; pass = !fail && pass;