Commit Graph

22 Commits (13ea8f374f82aef22b31ba8db712c67625e39e8b)

Author SHA1 Message Date
Jeffrey Walton 13ea8f374f
Add interface to TweetNaCl library (#566)
TweetNaCl is a compact reimplementation of the NaCl library by Daniel J. Bernstein, Bernard van Gastel, Wesley Janssen, Tanja Lange, Peter Schwabe and Sjaak Smetsers. The library is less than 20 KB in size and provides 25 of the NaCl library functions.

The compact library uses curve25519, XSalsa20, Poly1305 and SHA-512 as default primitives, and includes both x25519 key exchange and ed25519 signatures. The complete list of functions can be found in TweetNaCl: A crypto library in 100 tweets (20140917), Table 1, page 5.

Crypto++ retained the function names and signatures but switched to data types provided by <stdint.h> to promote interoperability with Crypto++ and avoid size problems on platforms like Cygwin. For example, NaCl typdef'd u64 as an unsigned long long, but Cygwin, MinGW and MSYS are LP64 systems (not LLP64 systems). In addition, Crypto++ was missing NaCl's signed 64-bit integer i64.

Crypto++ enforces the 0-key restriction due to small points. The TweetNaCl library allowed the 0-keys to small points. Also see RFC 7748, Elliptic Curves for Security, Section 6.

TweetNaCl is well written but not well optimized. It runs 2x to 3x slower than optimized routines from libsodium. However, the library is still 2x to 4x faster than the algorithms NaCl was designed to replace.

The Crypto++ wrapper for TweetNaCl requires OS features. That is, NO_OS_DEPENDENCE cannot be defined. It is due to TweetNaCl's internal function randombytes. Crypto++ used DefaultAutoSeededRNG within randombytes, so OS integration must be enabled. You can use another generator like RDRAND to avoid the restriction.
2018-01-17 22:02:09 -05:00
Jeffrey Walton f3c04dbcb7
Remove CMake testing support (GH #506)
CMake can now be found at http://www.cryptopp.com/wiki/CMake. The Cmake project files are now maintianed by the community.
2017-09-16 21:23:35 -04:00
Jeffrey Walton 9c9e69119f Remove -march=native as default in Makefile and CMake (PR #465)
Remove -march=native as default in Makefile and CMake (PR #465)
2017-08-23 16:13:20 -04:00
Jeffrey Walton 6e35e7387a
Add debug configuration to Travis 2017-08-17 01:47:08 -04:00
Jeffrey Walton f099d2df91
Remove ios-tv from allow_failures 2017-08-16 23:15:23 -04:00
Jeffrey Walton e5b1be035e
Add iOS testing to Travis 2017-08-10 22:59:00 -04:00
Jeffrey Walton dd42fa3ef6
Add notification address of cryptopp-build@googlegroups.com (Take 2) 2017-05-31 07:22:04 -04:00
Jeffrey Walton a33504c8f8
Add notification address of cryptopp-build@googlegroups.com
Its a new Google Group created at https://groups.google.com/forum/#!forum/cryptopp-build. The list should allow us to run services on unprivileged forks and other unrelated accounts while making it easy to find results.
2017-05-31 04:36:31 -04:00
Jeffrey Walton 0df38c3506
Fix build timeout due to tracking vars under UBsan
Also see https://stackoverflow.com/q/2954473/608639 and https://stackoverflow.com/q/708807/608639
2017-05-28 17:00:09 -04:00
Jeffrey Walton 567e4f31b4
Update travis.yml for Clang, GCC and OS X
Thanks to Hiro Asari on the Travis GitHub for helping with the last of the issues
2017-05-28 02:42:40 -04:00
Hiro Asari b120276f3e Define matrix exclusion (#432) 2017-05-28 01:17:28 -04:00
Jeffrey Walton 0885ce2bcc
Attempt to add Code Coverage report (Take 5)
This should be interesting...
2017-05-27 06:41:02 -04:00
Jeffrey Walton ea3ea9deb5
Add missing semi-colon 2017-05-27 05:50:01 -04:00
Jeffrey Walton b5240463f1
Attempt to add Code Coverage report (Take 4)
This should be interesting...
2017-05-27 04:21:51 -04:00
Jeffrey Walton 345b4e49e2
Attempt to add Code Coverage report (Take 2)
This should be interesting...
2017-05-27 03:42:50 -04:00
Jeffrey Walton 3c504b3401
Attempt to add Code Coverage report
This should be interesting...
2017-05-27 03:08:07 -04:00
Jeffrey Walton b02ab0a0ba
Tune Travis configuration
Now that the jobs are running we can start fixing the little issues
2017-05-27 00:41:58 -04:00
Jeffrey Walton 84e6961457
Updated makefile trim and convert rules
Whitespace check-in
2017-05-26 10:08:44 -04:00
Jeffrey Walton 4f5dd74286
Update Travis config file 2017-05-26 09:41:15 -04:00
Jeffrey Walton b770b21dc4
Fix Travis hang 2017-05-26 06:30:46 -04:00
Jeffrey Walton f69504f6b4
Cleanup travis.yml file 2017-04-17 01:15:55 -04:00
Jeffrey Walton 3d9ac8f66f
Add Travis configuration file 2017-04-17 00:25:57 -04:00