aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_newhope.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make the tests VarMap an actual type instead of a hashmap typedef.Jack Lloyd2018-05-291-5/+5
|
* Add final annotations as appropriate in the test codeJack Lloyd2017-09-221-2/+2
|
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-12/+26
|
* Minor refactoring of Text_Based_TestJack Lloyd2016-12-191-1/+4
| | | | | | Turns out astyle has some bugs wrt C++11 initialize lists. Rather than having astyle mangle all of the tests, convert to using a string which is split once at the start instead of a vector of keys.
* Convert to using standard uintN_t integer typesJack Lloyd2016-12-181-4/+4
| | | | | | Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
* Add CECPQ1 TLS ciphersuitesJack Lloyd2016-11-171-2/+2
| | | | | | | | | | | | | Tested against BoringSSL (as client + server) and google.com (as client). Fix a stupid crashing bug in NewHope's BoringSSL mode. Remove unneeded error return from curve25519_donna - always returned 0. Default policy prefers ChaChaPoly1305 over GCM and CECPQ1 over ECDH/DH, which means the default no-extra-configuration ciphersuite (for Botan client speaking to Botan server) is a ciphersuite which is both implemented in constant time on all platforms and (hopefully) provides post quantum security. Good Things.
* Add proper SHA-3Jack Lloyd2016-10-191-5/+9
| | | | | | | | | | Kind of a copy and paste of Keccak, but only a single copy of the permutation at least. Keccak depends on SHA-3 instead of the reverse, so that SHA-3 can be enabled without also bringing in an unapproved hash function. Updates newhope code and removes API function newhope_hash which was an unofficial SHA-3-256.
* Fix tests with newhope disabledJack Lloyd2016-08-301-3/+10
|
* Add NEWHOPE KEM schemeJack Lloyd2016-08-301-0/+127
Provides conjectured 200-bit security against a quantum attacker. Based on the public domain reference implementation at https://github.com/tpoeppelmann/newhope and bit-for-bit compatible with that version. Test vectors generated by the reference testvector.c