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
Jeffrey Walton
1efa1a9fc7
Add additional Integer class tests
2018-03-25 18:28:56 -04:00
Jeffrey Walton
b096401b7c
Add additional Integer class tests
2018-03-25 16:44:51 -04:00
Jeffrey Walton
a6c9419059
Update documentation
2018-03-25 15:31:43 -04:00
Jeffrey Walton
d165544131
Update documentation
2018-03-25 15:14:18 -04:00
Jeffrey Walton
2f61c159b0
Add additional Integer class tests
2018-03-25 14:12:51 -04:00
Jeffrey Walton
932f392b2d
Fix incorrect InverseMod (GH #602 )
...
cryptest.sh revealed a corner case still producing an incorrect result. We need to check for '*this > m', not '*this > 2m-1'.
The corner case looks obscure. The failure surfaced as 1 failed self test for about every 2048 tests. It was also in a code path where 'a' was explicitly set to '2m-1', with 'm' random.
The test result can be duplicated with 'cryptest.exe v 9996 1521969687'. The value '1521969687' is a seed for the random number generator to reproduce.
2018-03-25 11:15:34 -04:00
Jeffrey Walton
34be01231c
Fix conversion warnings under MSC
2018-03-25 02:47:38 -04:00