Commit Graph

3600 Commits (6faaf35195f49c9d478fdc7cd188c66d51be163e)

Author SHA1 Message Date
Jeffrey Walton 6faaf35195
Add Salsa20_Core transform (GH #630) (#632) 2018-04-02 03:51:51 -04:00
Jeffrey Walton d106256a29
Update scrypt (#629)
Use pre-increment on variables
Add code comments
2018-04-01 22:30:03 -04:00
Jeffrey Walton eb483dd3a6
Add additional asserts to Scrypt 2018-04-01 15:49:00 -04:00
Jeffrey Walton ea9a5cf755
Add OpenMP support to Scrypt (GH #613) (#628)
Scrypt performance jumps as expected. For example, on a machine with 4 logical cores:

    $ time OMP_NUM_THREADS=1 ./test.exe
    Threads: 1
    Key: DCF073537D25A10C9733...

    real    0m17.959s
    user    0m16.165s
    sys     0m1.759s

    $ time OMP_NUM_THREADS=4 ./test.exe
    Threads: 4
    Key: B37A0127DBE178ED604F...

    real    0m4.488s
    user    0m15.391s
    sys     0m1.981s
2018-04-01 06:58:00 -04:00
Jeffrey Walton d94ef9c70c
Re-enable OS X and iOS on Travis (GH #570, PR #627) 2018-04-01 02:37:32 -04:00
Jeffrey Walton 2e8ccc7777
Update documentation
Add asserts to Scrypt ValidateParameters
2018-03-31 21:26:38 -04:00
Jeffrey Walton 129d65d987
Update documentation 2018-03-31 20:25:58 -04:00
Jeffrey Walton 4a69b8581d
Fix Windows compile error using VS2008 2018-03-31 20:19:07 -04:00
Jeffrey Walton 64d02e3a18
Add scrypt key derivation function (GH #613, PR #626) 2018-03-31 20:09:38 -04:00
Ilja 8d81492f88 Remove extra ; from cpu.cpp (PR #614) 2018-03-31 13:10:11 -04:00
Ilja afaff62d8d Remove extra ; from crc-simd.cpp (PR #615) 2018-03-31 13:09:41 -04:00
Ilja 38253a939f Remove extra ; from eccrypto.cpp (PR #616) 2018-03-31 13:08:57 -04:00
Ilja e7ee0e9bab Remove extra ;s from rsa.h (PR #617) 2018-03-31 13:08:29 -04:00
Ilja 6cbcd51135 Remove extra ; from neon-simd.cpp (PR #619) 2018-03-31 13:07:30 -04:00
Ilja f035ad7187 Remove extra ; from ppc-simd.cpp (PR #620) 2018-03-31 13:06:44 -04:00
Ilja f8a1f50383 Remove extra ; from gcm-simd.cpp (PR #618) 2018-03-31 13:05:45 -04:00
Ilja ec6c442cc6 Remove extra ; from rijndael-simd.cpp (PR #621) 2018-03-31 13:04:42 -04:00
Ilja 8f730529b9 Remove extra ; from sha-simd.cpp (PR #622) 2018-03-31 13:04:00 -04:00
Ilja 30b583a951 Remove extra ; from sse-simd.cpp (PR #623) 2018-03-31 13:03:32 -04:00
Ilja fa80880b6f Remove extra ;s from ossig.h (PR #625) 2018-03-31 12:59:25 -04:00
Ilja cdae245a13 Remove extra ;s from zinflate.cpp (PR #624) 2018-03-31 12:58:36 -04:00
Jeffrey Walton 57804328b8
Cleanup asserts in pwdbased.h 2018-03-30 23:02:40 -04:00
Jeffrey Walton 8d60521f8c
Remove unneeded ThrowIfInvalidDerivedLength in DeriveKey 2018-03-30 16:40:15 -04:00
Jeffrey Walton 05fe384d82
Cleanup HKDF salt and info 2018-03-30 00:34:12 -04:00
Jeffrey Walton 616741d4ea
Add missing function body for PKCS5_PBKDF1<T>::DeriveKey (GH #610)
Not sure how I missed that entire body... Also added a default timeInSeconds to all PBKDFs
2018-03-30 00:10:26 -04:00
Jeffrey Walton 57a35a6896
Update documentation 2018-03-29 23:23:37 -04:00
Jeffrey Walton 7b33bc5e04
Cutover PBKDF to KeyDerivationFunction interface (GH #610, PR #612) 2018-03-29 23:13:56 -04:00
Jeffrey Walton 32abab75f2
Add KeyDerivationFunction interface (GH #610, PR #611) 2018-03-29 20:18:27 -04:00
Jeffrey Walton 8c5abe604a
Remove '#undef BLOCKING_RNG_AVAILABLE' from validate.cpp
This was for testing on low-resource ARM dev-boards. It accidentally cross-pollinated into other systems.
2018-03-28 13:06:16 -04:00
Jeffrey Walton 69915e1755
Remove double CRYPTOPP_SECTION_INIT for g_hasSSE2
Also change to a single declaration per line. The multiple declarations got to be messy
2018-03-27 23:19:26 -04:00
Jeffrey Walton 8fca97da54
Update documentation 2018-03-27 21:17:10 -04:00
Jeffrey Walton e9b6e85b77
Bump version numbers 2018-03-27 21:07:53 -04:00
Jeffrey Walton 3958fad099
Add sbyte, sword16, sword32 and sword64 (GH #608, GH #609)
Visual Studio 2008 kind of forced out hand with this. VS2008 lacks <stdint.h> and <cstdint> and it caused compile problems in NaCl gear. We were being a tad bit lazy by relying on int8_t, int32_t and int64_t, but the compiler errors made us act
2018-03-27 20:47:20 -04:00
Jeffrey Walton 1c60f6480f
Fix Windows compile error using VS2008 2018-03-27 20:38:26 -04:00
Jeffrey Walton 43ff11a089
Suppress C4231 and C4505 warnings using VS2008 2018-03-27 20:37:42 -04:00
Jeffrey Walton 506f90bcc8
Fix VS2010 and "error C2065: uint32_t: undeclared identifier" (GH #608)
We could fix aria.cpp by using word32. However, NaCl gear uses int64_t and we don't have a typedef setup for it. So we will need <cstdint> later for NaCl
2018-03-27 19:18:44 -04:00
Ilja 71ea29d893 Remove extra ';' from oids.h (GH #607) 2018-03-27 14:15:42 -04:00
Jeffrey Walton f26a07ad98
Add extraneous calls for code coverage 2018-03-27 03:29:56 -04:00
Jeffrey Walton 3b8bc690bb
Add additional self tests 2018-03-27 00:33:27 -04:00
Jeffrey Walton 36bde8eab5
Switch to <nbtheory.h> functions 2018-03-26 23:49:04 -04:00
Jeffrey Walton 9ab3f61810
Update documentation 2018-03-26 23:30:34 -04:00
Jeffrey Walton c9fc704941
Remove double include 2018-03-26 23:16:35 -04:00
Jeffrey Walton 780a2b8c82
Update documentation 2018-03-26 17:41:06 -04:00
Jeffrey Walton 83c9d29875
Update documentation 2018-03-26 16:54:39 -04:00
Jeffrey Walton 0253fa9940
Update documentation 2018-03-26 15:41:31 -04:00
Jeffrey Walton a665e0825f
Use '*this >= m' for InverseMod reduction
The previous test used '*this > m', which did not capture 'm'
2018-03-26 13:31:18 -04:00
Jeffrey Walton 302d210ceb
Add additional Integer class tests 2018-03-26 13:02:55 -04:00
Ilja c2e4ee60b3 Remove extra ;s (GH #605) 2018-03-26 11:36:54 -04:00
Jeffrey Walton dd74bc93a4
Add additional Integer class tests 2018-03-25 19:53:26 -04:00
Jeffrey Walton 874c48a329
Fix a_exp_b_mod_c and divide by 0 (GH #604) 2018-03-25 19:22:42 -04:00