From 8ffd165c7a59b6d2ccbc737788d61a61072d6e91 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 21 Jan 2018 17:04:15 -0500 Subject: [PATCH] Rename nacl.h to naclite.h This should avoid confusion with header files from the reference implementation and libsodium --- Filelist.txt | 2 +- TestScripts/tweetnacl.patch | 2 +- cryptlib.vcxproj | 2 +- cryptlib.vcxproj.filters | 2 +- nacl.h => naclite.h | 4 ++-- tweetnacl.cpp | 2 +- validat4.cpp | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) rename nacl.h => naclite.h (97%) diff --git a/Filelist.txt b/Filelist.txt index 7bfd69b00..c09372cdd 100644 --- a/Filelist.txt +++ b/Filelist.txt @@ -183,7 +183,7 @@ mqueue.cpp mqueue.h mqv.cpp mqv.h -nacl.h +naclite.h nbtheory.cpp nbtheory.h neon-simd.cpp diff --git a/TestScripts/tweetnacl.patch b/TestScripts/tweetnacl.patch index ae0948d49..7292ef373 100644 --- a/TestScripts/tweetnacl.patch +++ b/TestScripts/tweetnacl.patch @@ -18,7 +18,7 @@ + +#include "pch.h" +#include "config.h" -+#include "nacl.h" ++#include "naclite.h" +#include "misc.h" +#include "osrng.h" +#include "stdcpp.h" diff --git a/cryptlib.vcxproj b/cryptlib.vcxproj index fd6e58fc3..fff3f475d 100644 --- a/cryptlib.vcxproj +++ b/cryptlib.vcxproj @@ -438,7 +438,7 @@ - + diff --git a/cryptlib.vcxproj.filters b/cryptlib.vcxproj.filters index 7925460a5..c1fd8c010 100644 --- a/cryptlib.vcxproj.filters +++ b/cryptlib.vcxproj.filters @@ -714,7 +714,7 @@ Header Files - + Header Files diff --git a/nacl.h b/naclite.h similarity index 97% rename from nacl.h rename to naclite.h index 10a0a4879..c8e937f04 100644 --- a/nacl.h +++ b/naclite.h @@ -1,9 +1,9 @@ -// nacl.h - written and placed in the public domain by Jeffrey Walton +// naclite.h - written and placed in the public domain by Jeffrey Walton // based on public domain NaCl source code written by // Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, // Tanja Lange, Peter Schwabe and Sjaak Smetsers. -/// \file nacl.h +/// \file naclite.h /// \brief Crypto++ interface to TweetNaCl library (20140917) /// \details TweetNaCl is a compact reimplementation of the NaCl library by /// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, diff --git a/tweetnacl.cpp b/tweetnacl.cpp index 9d546e7fa..961928861 100644 --- a/tweetnacl.cpp +++ b/tweetnacl.cpp @@ -5,7 +5,7 @@ #include "pch.h" #include "config.h" -#include "nacl.h" +#include "naclite.h" #include "misc.h" #include "osrng.h" #include "stdcpp.h" diff --git a/validat4.cpp b/validat4.cpp index 70a2e7384..a7f3ca69c 100644 --- a/validat4.cpp +++ b/validat4.cpp @@ -18,7 +18,7 @@ #include "cryptlib.h" #include "secblock.h" #include "integer.h" -#include "nacl.h" +#include "naclite.h" #include #include @@ -485,7 +485,7 @@ bool TestCryptoSignKeys() // NaCl requires an integrated random number generator; see randombytes() // in tweetnacl.cpp. We use DefaultAutoSeededRNG but it means we need // Operating System features to seed the generator. If you use another -// generator, like RDRAND, then undefine CRYPTOPP_DISABLE_NACL in nacl.h. +// generator, like RDRAND, then undefine CRYPTOPP_DISABLE_NACL in naclite.h. bool ValidateNaCl() { std::cout << "\nTesting NaCl library functions...\n\n";