Commit Graph

4847 Commits (4c9ca6b723b5ec5aab7eec720ad4d22598abe941)

Author SHA1 Message Date
Jeffrey Walton 6770a8dad4
Update documentation 2019-01-27 05:45:05 -05:00
Jeffrey Walton 62ce6db97d
Fix missing GF2NT_233_Multiply_Reduce_ARMv8 on Aarch64 2019-01-27 02:18:19 -05:00
Jeffrey Walton e388f2d88d
Add Poly1305TLS algorithm (GH #727)
This is the IETF's rendition of Poly1305 that forgoes AES and the nonce, and uses 16-bytes of the key directly to mac the message
2019-01-27 01:41:53 -05:00
Jeffrey Walton 6cd2d0a06a
Fix Aarch64 build when CRYPTOPP_ARM_PMULL_AVAILABLE=0 2019-01-26 20:20:45 -05:00
Jeffrey Walton 6a76dc5ecf
Refactor Poly1305(AES) in preparation for IETF rendition (GH #727) 2019-01-26 13:53:21 -05:00
Jeffrey Walton e17f17d8fc
Add tamper comment to Poly1305(AES) tests 2019-01-26 13:12:46 -05:00
Jeffrey Walton 69286301e0
Add Poly1305(AES) test vectors 2019-01-26 12:54:47 -05:00
Jeffrey Walton 64a89bf352
Update License.txt with CRYPTOGAMS text 2019-01-26 05:12:20 -05:00
Jeffrey Walton e719a1a0ea
Add CRYPTOGAMS copyright notice for Poly1305 scalar multiplication 2019-01-26 04:43:55 -05:00
Jeffrey Walton 83f41e0d76
Update documentation 2019-01-26 00:12:11 -05:00
Jeffrey Walton b9d2310beb
Use ROUNDS constant for ChaChaTLS 2019-01-25 23:27:48 -05:00
Jeffrey Walton 76bdb328a6
Switch to RFC 8439 for ChaChaTLS
Unfortunately the block counter wrap problem is still present.
2019-01-25 21:51:43 -05:00
Jeffrey Walton 82f80124e6
Update comments 2019-01-25 19:49:17 -05:00
Jeffrey Walton 779e28a9b0
Update comments 2019-01-25 19:04:34 -05:00
Jeffrey Walton c1f9b484b7
Use ChaChaTLS in benchmarks 2019-01-25 08:20:25 -05:00
Jeffrey Walton 6a68abea0a
Update comments 2019-01-25 08:14:23 -05:00
Jeffrey Walton 97df2b960b
Update comments 2019-01-25 07:54:00 -05:00
Jeffrey Walton dcd9e67eeb
Refactor ChaCha and ChaChaTLS use a common core 2019-01-25 06:40:12 -05:00
Jeffrey Walton 70dcd29e0b
Refactor ChaCha and ChaChaTLS use a common core 2019-01-25 06:18:58 -05:00
Jeffrey Walton 798e4d85b3
Update comments 2019-01-25 05:06:06 -05:00
Jeffrey Walton d7e416d403
Add additional ChaChaTLS test vectors
These test vectors were generated from a modified Bernstein reference implementation.
2019-01-25 05:03:27 -05:00
Jeffrey Walton d25ba0c59a
Enable SIMD implementation for ChaChaTLS (GH #265) 2019-01-25 02:57:11 -05:00
Jeffrey Walton caaaaa7691
Add additional ChaChaTLS test vectors
These test vectors were generated from a modified Bernstein reference implementation.
2019-01-25 02:34:44 -05:00
Jeffrey Walton acde2f8e5e
Use word64 for ChaChaTLS InitialBlock (GH #265) 2019-01-25 02:34:07 -05:00
Jeffrey Walton 7923a97d24
Enable ChaCha-TLS tests in test vectors 2019-01-25 01:03:22 -05:00
Jeffrey Walton f23b58b73c
Remove rounds from ChaChaTLS
Rounds are alwys 20 in the IETF implementation.
2019-01-24 22:26:15 -05:00
Jeffrey Walton 099f870c55
Add additional ChaChaTLS test vectors from RFC 7539 2019-01-24 21:15:48 -05:00
Jeffrey Walton a29b734a0f
Fix AlgorithmProvider for ChaChaTLS 2019-01-24 09:46:56 -05:00
Jeffrey Walton 5603661eec
Add ChaChaTLS implementation (GH #265)
We tweaked ChaCha to arrive at the IETF's implementation specified by RFC 7539. We are not sure how to handle block counter wrap. At the moment the caller is responsible for managing it. We were not able to find a reference implementation so we disable SIMD implementations like SSE, AVX, NEON and Power4. We need the wide block tests for corner cases to ensure our implementation is correct.
2019-01-24 09:36:05 -05:00
Jeffrey Walton b47f04418c
Update documentation 2019-01-24 02:09:03 -05:00
Jeffrey Walton 0f70d0262b
Update documentation 2019-01-24 02:01:52 -05:00
Jeffrey Walton 1cd8ccbf82
Drop use of static in unnamed namespace 2019-01-23 06:15:51 -05:00
Jeffrey Walton 3d07010ac8
Fix self test failure with IBM XL C/C++ on AIX 2019-01-22 08:16:03 -05:00
Jeffrey Walton 488c1df2fe
Fix self test failure with IBM XL C/C++ on AIX 2019-01-22 06:13:14 -05:00
Jeffrey Walton 76765f1e0a
Fix self test failure with IBM XL C/C++ on AIX 2019-01-22 06:08:47 -05:00
Jeffrey Walton 6d339011a8
Remove /openmp from cryptest.nmake
This has cross-pollinated twice in two days
2019-01-22 05:11:50 -05:00
Jeffrey Walton ef1b391ce6
Use #pragma omp simd for OpenMP 4.0 compilers (GH #787)
Crap... It is OpenMP 4.0, not 3.0
2019-01-22 04:58:54 -05:00
Jeffrey Walton 6ada677461
Whitespace check-in 2019-01-22 03:44:34 -05:00
Jeffrey Walton 8572541841
Use #pragma omp simd for OpenMP 3.0 compilers (GH #787) 2019-01-22 03:42:53 -05:00
Jeffrey Walton 3f38a5f7dd
Cleanup gf2n_simd.cpp 2019-01-22 02:47:12 -05:00
Jeffrey Walton df3f104eb2
Clear type limits warning using GCC 2019-01-22 02:37:38 -05:00
Jeffrey Walton c22f37f051
Clear unused variable warning on AIX 2019-01-22 02:35:25 -05:00
Jeffrey Walton b8f7348c61
Whitespace check-in 2019-01-21 22:16:49 -05:00
Jeffrey Walton c62bf2b147
Add call to DoQuickSanityCheck in HMQV and FHMQV before private key operation 2019-01-21 19:55:05 -05:00
Jeffrey Walton 76a4a5728d
Fix failed debug self test with Sun Studio 12.6 2019-01-21 19:54:26 -05:00
Jeffrey Walton bbad4397c4
Use VectMergeLow and VecMergeHigh 2019-01-21 03:04:07 -05:00
Jeffrey Walton 767d7e2a13
Remove /openmp from cryptest.nmake 2019-01-21 02:03:22 -05:00
Jeffrey Walton ac24f39e33
Fix compile on AIX 2019-01-21 00:56:21 -05:00
Jeffrey Walton 8b892e2020
Add dedicated F2N_Square_256 circuit 2019-01-21 00:48:53 -05:00
Jeffrey Walton 7ab75751cd
Clear unused variable warning under Visual Studio 2019-01-20 23:44:01 -05:00