Rename nacl.h to naclite.h

This should avoid confusion with header files from the reference implementation and libsodium
pull/574/head
Jeffrey Walton 2018-01-21 17:04:15 -05:00
parent 1df1d25428
commit 8ffd165c7a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
7 changed files with 9 additions and 9 deletions

View File

@ -183,7 +183,7 @@ mqueue.cpp
mqueue.h mqueue.h
mqv.cpp mqv.cpp
mqv.h mqv.h
nacl.h naclite.h
nbtheory.cpp nbtheory.cpp
nbtheory.h nbtheory.h
neon-simd.cpp neon-simd.cpp

View File

@ -18,7 +18,7 @@
+ +
+#include "pch.h" +#include "pch.h"
+#include "config.h" +#include "config.h"
+#include "nacl.h" +#include "naclite.h"
+#include "misc.h" +#include "misc.h"
+#include "osrng.h" +#include "osrng.h"
+#include "stdcpp.h" +#include "stdcpp.h"

View File

@ -438,7 +438,7 @@
<ClInclude Include="modexppc.h" /> <ClInclude Include="modexppc.h" />
<ClInclude Include="mqueue.h" /> <ClInclude Include="mqueue.h" />
<ClInclude Include="mqv.h" /> <ClInclude Include="mqv.h" />
<ClInclude Include="nacl.h" /> <ClInclude Include="naclite.h" />
<ClInclude Include="nbtheory.h" /> <ClInclude Include="nbtheory.h" />
<ClInclude Include="network.h" /> <ClInclude Include="network.h" />
<ClInclude Include="nr.h" /> <ClInclude Include="nr.h" />

View File

@ -714,7 +714,7 @@
<ClInclude Include="nbtheory.h"> <ClInclude Include="nbtheory.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="nacl.h"> <ClInclude Include="naclite.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="network.h"> <ClInclude Include="network.h">

View File

@ -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 // based on public domain NaCl source code written by
// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, // Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen,
// Tanja Lange, Peter Schwabe and Sjaak Smetsers. // Tanja Lange, Peter Schwabe and Sjaak Smetsers.
/// \file nacl.h /// \file naclite.h
/// \brief Crypto++ interface to TweetNaCl library (20140917) /// \brief Crypto++ interface to TweetNaCl library (20140917)
/// \details TweetNaCl is a compact reimplementation of the NaCl library by /// \details TweetNaCl is a compact reimplementation of the NaCl library by
/// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, /// Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange,

View File

@ -5,7 +5,7 @@
#include "pch.h" #include "pch.h"
#include "config.h" #include "config.h"
#include "nacl.h" #include "naclite.h"
#include "misc.h" #include "misc.h"
#include "osrng.h" #include "osrng.h"
#include "stdcpp.h" #include "stdcpp.h"

View File

@ -18,7 +18,7 @@
#include "cryptlib.h" #include "cryptlib.h"
#include "secblock.h" #include "secblock.h"
#include "integer.h" #include "integer.h"
#include "nacl.h" #include "naclite.h"
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
@ -485,7 +485,7 @@ bool TestCryptoSignKeys()
// NaCl requires an integrated random number generator; see randombytes() // NaCl requires an integrated random number generator; see randombytes()
// in tweetnacl.cpp. We use DefaultAutoSeededRNG but it means we need // in tweetnacl.cpp. We use DefaultAutoSeededRNG but it means we need
// Operating System features to seed the generator. If you use another // 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() bool ValidateNaCl()
{ {
std::cout << "\nTesting NaCl library functions...\n\n"; std::cout << "\nTesting NaCl library functions...\n\n";