Commit Graph

4726 Commits (df98f8c16b26a57729fe15a53ba81c336055c4d1)

Author SHA1 Message Date
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
Jeffrey Walton fbf0f62f4b
Clear unused variable warning under Visual Studio 2019-01-20 23:40:20 -05:00
Jeffrey Walton ca32b63038
Remove /openmp from cryptest.nmake 2019-01-20 22:46:45 -05:00
Jeffrey Walton 7e96a283a3
Fix compile under MSVC 2019-01-20 22:45:53 -05:00
Jeffrey Walton 672f5c7f3d
Update documentation 2019-01-20 22:43:00 -05:00
Jeffrey Walton aa043b38a7
Use OpenMP 2.0 for MSC compilers (GH #787) 2019-01-20 22:10:36 -05:00
Jeffrey Walton 92808945c1
Fix TestAltivecOps on AIX 2019-01-20 19:34:09 -05:00
Jeffrey Walton 0b348fe4be
Remove socket libraries
This should have been removed at Issue 178 and Issue 208
2019-01-20 16:43:49 -05:00
Jeffrey Walton efddef694d
Update documentation 2019-01-20 04:50:22 -05:00
Jeffrey Walton f510b3498c
Update documentation 2019-01-20 03:52:05 -05:00
Jeffrey Walton f95638ef0c
Update documentation 2019-01-20 03:24:18 -05:00
Jeffrey Walton 177385393d
Update CPU_ProbePMULL test 2019-01-20 02:41:20 -05:00
Jeffrey Walton 8fd5bb31cf
Add VecPolyMultiply for Intel-equivalent F2N multiplies 2019-01-20 01:47:34 -05:00
Jeffrey Walton c60f30f912
Add dedicated F2N_Multiply_256x256 circuit 2019-01-19 18:27:12 -05:00
Jeffrey Walton cefcaeaa68
Update documentation 2019-01-19 16:32:13 -05:00
Jeffrey Walton 275b86a8d5
Update documentation 2019-01-19 16:21:07 -05:00
Jeffrey Walton c39d7fdef5
Add VecMergeHi and VecMergeLo PowerPC wrappers 2019-01-19 15:20:47 -05:00
Jeffrey Walton 5909ec6186
Cleanup PowerPC vector operations 2019-01-19 05:34:02 -05:00
Jeffrey Walton 76b7390840
Switch to vec_mergeh and vec_mergel for PowerPC in binary curves
This saves aboout 4 instructions in VMULL
2019-01-19 04:52:36 -05:00
Jeffrey Walton e3bc76832c
Switch to vec_mergeh and vec_mergel for PowerPC in binary curves 2019-01-19 04:22:55 -05:00
Jeffrey Walton ac49c970bc
Switch to vec_mergeh and vec_mergel for PowerPC in binary curves 2019-01-19 03:49:20 -05:00
Jeffrey Walton b6959d4d51
Update cryptest-symbols.sh script 2019-01-18 00:18:39 -05:00