Commit Graph

3829 Commits (365e65c2eba53f8d446df293c60eef6debcf3d02)

Author SHA1 Message Date
Jeffrey Walton 9b4476ef7b
Update symbol script for Crypto++ 7.x 2018-07-11 16:16:32 -04:00
Jeffrey Walton d094bc61cd
Update comments 2018-07-11 15:12:53 -04:00
Jeffrey Walton b3fe24b8b5
Remove CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS support (GH #682)
We were able to gut CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS for everything except Rijndael. Rijndael uses unaligned accesses on x86 to harden against timing attacks.
There's a little more to CRYPTOPP_ALLOW_UNALIGNED_DATA_ACCESS and Rijndael. If we remove unaligned access then AliasedWithTable hangs in an endless loop on non-AESNI machines. So care must be taken when trying to remove the vestige from Rijndael.
2018-07-11 11:40:25 -04:00
Jeffrey Walton 1e77a72ed6
Disable Cryptogams AES under Clang
What a surprise... Clang pretends to be GCC with __GNUC__ but fails to consume the source file
2018-07-11 09:19:11 -04:00
Jeffrey Walton 3ff7d7f028
Add ARM AES asm implementation from Cryptogams (GH #683) 2018-07-11 06:59:44 -04:00
Jeffrey Walton bdac2de36e
Increase use of ptrdiff_t when performing pointer math 2018-07-10 17:41:23 -04:00
Jeffrey Walton 1836a7feb4
Cleanup datatest.cpp
Switch to non-blocking rngs for Linux and Windows
2018-07-10 17:34:55 -04:00
Jeffrey Walton 004d213e29
Increase use of ptrdiff_t when performing pointer math 2018-07-10 17:31:01 -04:00
Jeffrey Walton 961e9b483c Revert "Clear conversion warning"
This reverts commit 9748c3cf3e. It broke Windows.
2018-07-10 17:18:11 -04:00
Jeffrey Walton a2ca2cfc0f
Use OS rng as alternate test generator 2018-07-10 17:08:13 -04:00
Jeffrey Walton 722d3e38c1
Avoid cast in PtrDiff
ptrdiff_t is the return type
2018-07-10 11:55:50 -04:00
Jeffrey Walton 9748c3cf3e
Clear conversion warning 2018-07-10 11:54:13 -04:00
Jeffrey Walton 45fcd47c07
Clear conversion warning 2018-07-10 11:37:21 -04:00
Jeffrey Walton 3b6872a8cd
Avoid cast in PtrDiff
ptrdiff_t is the return type
2018-07-10 11:36:48 -04:00
Jeffrey Walton 9e50eae673
Clear unused variable warning 2018-07-10 11:30:32 -04:00
Jeffrey Walton 33a1baa1a5
Clear conversion warning 2018-07-10 11:30:13 -04:00
Jeffrey Walton 50f99ae802
Increase use of ptrdiff_t when performing pointer math 2018-07-10 09:21:52 -04:00
Jeffrey Walton 59d8ccd64f
Switch to PtrAdd and PtrSub in ByteQueue 2018-07-10 08:25:35 -04:00
Jeffrey Walton 8dc15f4c56
Fix ARMv7 detection after c6c44aa5d1 2018-07-10 05:08:27 -04:00
Jeffrey Walton c6c44aa5d1
Add PtrAdd and PtrSub helper functions
This helps contain UB on pointer subtraction by ensuring a ptrdiff_t is used. The code is a little uglier but it is also more portable.
2018-07-10 05:00:02 -04:00
Jeffrey Walton c186689273
Add RandomizedTransfer overload 2018-07-10 02:55:29 -04:00
Jeffrey Walton 4c5487b0e4
Increase use of ptrdiff_t when performing pointer math
Increase use of ptrdiff_t when performing pointer math
Reduce AlgorithmProvider overrides
Fix CPU_ProbeARMv7 on Aarch64
2018-07-09 06:31:17 -04:00
Jeffrey Walton 86773e942c
Make GNUmakefile aware of *.S files 2018-07-09 06:19:58 -04:00
Jeffrey Walton 03bceda159
Use C++ style casts and take addr of elem 0 for non-const pointers 2018-07-09 03:08:28 -04:00
Jeffrey Walton 664d67e0f6
Add additional asserts in modes.cpp 2018-07-08 22:14:17 -04:00
Jeffrey Walton 517d552a91
Add ARMv7 cpu detection 2018-07-08 02:49:21 -04:00
Jeffrey Walton 886e48d85d
Fix failed link on ARM and friends 2018-07-07 21:34:00 -04:00
Jeffrey Walton f065f193c1
Fixed failed ChaCha tests
We switched to the pattern used for Salsa but did not update the name in the test vector file
2018-07-06 22:30:11 -04:00
Jeffrey Walton 71cc002fd5
Update documentation 2018-07-06 22:12:15 -04:00
Jeffrey Walton 6d1bb00b05
Update Makefile DLLSRCS to include latest files 2018-07-06 22:10:11 -04:00
Jeffrey Walton e6f87274c1
Update Makefile DLLSRCS to include latest files 2018-07-06 21:54:55 -04:00
Jeffrey Walton b74a6f4445
Add algorithm provider member function to Algorithm class 2018-07-06 09:23:37 -04:00
Jeffrey Walton 6d9047b444
Fix spelling 2018-07-06 09:21:13 -04:00
Jeffrey Walton 3dcceb55f5
Squash MS LNK4221 and libtool warnings 2018-07-06 03:46:25 -04:00
Jeffrey Walton 77cd5c69d0
Update documentation 2018-07-06 03:18:45 -04:00
Jeffrey Walton 9117d074ea
Update documentation 2018-07-06 03:09:22 -04:00
Jeffrey Walton ecababa006
Update documentation 2018-07-06 02:57:48 -04:00
Jeffrey Walton 0cee6f01f0
Squash MS LNK4221 and libtool warnings 2018-07-06 01:22:38 -04:00
Jeffrey Walton bc8da71ab3
Fix early Fedora compiles 2018-07-06 01:14:28 -04:00
Jeffrey Walton 30b304b0f1
Update comments 2018-07-06 00:35:01 -04:00
Jeffrey Walton 97a1e8cae2
Use SecBlock for keys and IVs 2018-07-06 00:11:10 -04:00
Jeffrey Walton 320c68ecbf
Add *.cxx to .gitignore 2018-07-05 23:33:44 -04:00
Jeffrey Walton 8c871b40ae
Update comments 2018-07-05 22:42:17 -04:00
Jeffrey Walton d7a751b39a
Fix missing test vector in FileList 2018-07-05 19:40:17 -04:00
Jeffrey Walton a1887d4824
Add missing HC-256 2018-07-05 19:20:35 -04:00
Jeffrey Walton 24d54f06e6
Remove GetOptimalBlockSize from Rabbit
The AdditiveCipherConcretePolicy adapter already provides it
2018-07-05 11:48:52 -04:00
Jeffrey Walton 717a81484a
Switch to size_t datatype 2018-07-05 10:42:55 -04:00
Jeffrey Walton c9c51a5e01
Rework OperateKeystream (GH #678)
This improves Rabbit performance on a Core i5 6400 from 5.5 cpb to 4.7 cpb
2018-07-05 08:41:44 -04:00
Jeffrey Walton 665e16d340
Remove unneeded input variable 2018-07-05 08:22:59 -04:00
Jeffrey Walton fd5dc95f96
Fix spelling 2018-07-05 07:13:04 -04:00