Commit Graph

3474 Commits (ec6f83a147f6d49471f7afc2f9b8eeaaa20efd62)

Author SHA1 Message Date
Jeffrey Walton ec6f83a147
Update documentation 2018-02-08 02:52:33 -05:00
Jeffrey Walton 00f86fa50a
Add <stdcpp.h> to <seckey.h> 2018-02-08 02:52:08 -05:00
Jeffrey Walton d5161923cb
Use INSTALL_PROGRAM for shared objects (GH #582) 2018-02-05 09:03:21 -05:00
Jeffrey Walton 0a43341cec
Use install program for Makefile (GH #582) 2018-02-05 08:54:13 -05:00
Jeffrey Walton a876d82445
Move CRYPTOPP_POSIX_MEMALIGN_AVAILABLE preference down
This should result in fewer surprises
2018-01-30 22:03:34 -05:00
Jeffrey Walton 7141d026c1
Switch to posix_memalign when available
It is easier to defer to the runtime for aligned allocations. We found the preprocessor macros needed to identitify the availability. Also see https://forum.kde.org/viewtopic.php?p=66274
2018-01-30 21:14:24 -05:00
Jeffrey Walton 22e783a378
Switch to posix_memalign when available
It is easier to defer to the runtime for aligned allocations. We found the preprocessor macros needed to identitify the availability. Also see https://forum.kde.org/viewtopic.php?p=66274
2018-01-30 21:05:55 -05:00
Jeffrey Walton e21f882f50
Switch to posix_memalign for FreeBSD 2018-01-29 17:39:25 -05:00
Jeffrey Walton c4392c40e0
Fix misaligned SSE2 allocations on FreeBSD (GH #562)
This may have something to do with https://github.com/monero-project/kovri/pull/788
2018-01-29 17:05:25 -05:00
Jeffrey Walton 96bc82fe12
Avoid a compiler warning in Makefile tests 2018-01-28 20:23:48 -05:00
Jeffrey Walton d4342558d0
Remove unneeded AOSP_SYS_INC 2018-01-28 16:37:34 -05:00
Jeffrey Walton be30fb424a
Cleanup Android defines 2018-01-28 16:17:40 -05:00
Jeffrey Walton 0de445b56a
Tie SHA availability to SSE4.2 availability
This cleanly sidesteps an Android compile failure without CRYPTOPP_DISABLE_SHA
2018-01-28 16:10:41 -05:00
Jeffrey Walton 1a23285576
Remove unneeded path include
This one is part of sysroot
2018-01-28 15:29:14 -05:00
Jeffrey Walton 51ce834cc4
Fix ARM detection (GH #573) 2018-01-28 13:33:03 -05:00
Jeffrey Walton 89a3fba081
Fix SHA-512 crash on Debian X32 (GH #578) 2018-01-28 11:34:57 -05:00
Jeffrey Walton 69d5400b3f
Fix MinGW misdetection (GH #573)
This commit does a few things. First, it uses the compiler's triplet and the build component to determine the machine we are targeting. Second, it adds an 'X' prefix so we don't collide with someone else's variables. Third it cleans up some of the recipes. Fourth, it removes X32 detection since the system differences are handled in config.h and the source files
2018-01-27 13:05:23 -05:00
zorun 6103900be4 build: add missing flags for SIMON and SPECK in GNUMakefile-cross (#577) 2018-01-27 12:23:44 -05:00
Jeffrey Walton c16eddb40e
Use /bin/sh (GH #573) 2018-01-25 18:39:24 -05:00
Jeffrey Walton 526742d862
Update documentation 2018-01-25 16:27:44 -05:00
Jeffrey Walton 78c9a6e459
Update documentation 2018-01-25 15:59:47 -05:00
XU Cheng 0bec012333 Fix building for Linuxbrew (#575)
Linuxbrew is a fork of Homebrew on Linux.
In which, the `gcc --version` will report "homebrew".
Therefore, the current code will incorrectly set OSXPORT_COMPILER
under such environment, which results to the following compiling errors:

gcm.cpp:823: Error: too many memory references for `add'
gcm.cpp:824: Error: too many memory references for `pxor'
gcm.cpp:825: Error: ambiguous operand size for `shr'
gcm.cpp:826: Error: too many memory references for `movzx'
gcm.cpp:827: Error: too many memory references for `add'
gcm.cpp:828: Error: too many memory references for `pxor'
gcm.cpp:829: Error: too many memory references for `movzx'
gcm.cpp:830: Error: too many memory references for `add'
gcm.cpp:831: Error: too many memory references for `pxor'
gcm.cpp:832: Error: ambiguous operand size for `add'
gcm.cpp:833: Error: ambiguous operand size for `sub'
gcm.cpp:835: Error: too many memory references for `movdqa'
g++-5 -DNDEBUG -g2 -O3 -fPIC -Wa,-q -DCRYPTOPP_CLANG_INTEGRATED_ASSEMBLER=1 -pthread -pipe -c md4.cpp
make: *** [GNUmakefile:1120: gcm.o] Error 1
make: *** Waiting for unfinished jobs....

Fix this problem by checking IS_DARWIN before setting OSXPORT_COMPILER.
2018-01-25 09:17:54 -05:00
Jeffrey Walton 51db9eb436
Clear clang-tidy warnings 2018-01-24 20:04:16 -05:00
Jeffrey Walton e546b2af85
Add cryptest-tidy.sh script 2018-01-24 18:30:21 -05:00
Jeffrey Walton 4d4c3d92a8
Clear clang-tidy warnings 2018-01-24 18:24:53 -05:00
Jeffrey Walton 30bcc7022d
Clear clang-tidy warnings 2018-01-24 15:35:45 -05:00
Jeffrey Walton 85993b2529
Add xorInput and xorOutput flags to adv-simd classes
Analysis tools are generating findings when the pointer xorBlocks is used as the flag. The other missing piece is, xorBlocks is never NULL when either BT_XorInput or BT_XorOuput. But we don't know how to train the analyzers with the information, so we make it explicit with the boolean flags xorInput and xorOutput.
Switching to the explicit flags costs us about 0.01 cpb on a modern Intel Core processor. In the typical case 0.01 is negligible.
2018-01-24 12:06:15 -05:00
Jeffrey Walton e872c8dc3a
Keep CAST tests together in bench1.cpp 2018-01-24 08:53:00 -05:00
Jeffrey Walton 01136e2c7b
Clear clang-tidy warnings 2018-01-23 21:15:26 -05:00
Jeffrey Walton 675575d960
Update documentation 2018-01-23 17:47:19 -05:00
Jeffrey Walton 8175f069cd
Update documentation 2018-01-23 16:08:46 -05:00
Jeffrey Walton 4c1b303c29
Update documentation 2018-01-23 15:54:06 -05:00
Jeffrey Walton 46e4d80df6
Add Kalyna typedefs (GH# 535) 2018-01-23 13:52:39 -05:00
Jeffrey Walton d72b516c29
Make 2048-bit modulus default for DSA (GH #571) 2018-01-23 13:19:27 -05:00
Jeffrey Walton dfb6f0dbc2
Whitespace check-in 2018-01-23 13:18:08 -05:00
Jeffrey Walton 7849ff393d
Update documentation 2018-01-22 22:59:19 -05:00
Jeffrey Walton c9b00c14fd
Update documentation 2018-01-22 20:13:18 -05:00
Jeffrey Walton e3d79bf98c
Update documentation 2018-01-22 19:50:11 -05:00
Jeffrey Walton 27cbfe03d6 Add History.txt for full record
Trim History section in Readme.txt to most recent items

Signed-off-by: Jeffrey Walton <noloader@gmail.com>
2018-01-22 19:27:11 -05:00
Jeffrey Walton 886abb683e
Whitespace check-in 2018-01-22 19:12:24 -05:00
Jeffrey Walton 92b03cdf62
Update Readme.txt 2018-01-22 18:34:20 -05:00
Jeffrey Walton 391cc2c141
Update version info 2018-01-22 18:25:19 -05:00
Jeffrey Walton 91a8652f9e
Update version info 2018-01-22 18:22:34 -05:00
Jeffrey Walton 19e07938fa
Post-release version increment
Also see https://www.cryptopp.com/wiki/Release_Versioning#Post-Release_Increment
2018-01-22 17:21:22 -05:00
Jeffrey Walton b6c6684451
Update documentation 2018-01-22 15:54:51 -05:00
Jeffrey Walton d429318230
Cleanup Doxygen directives 2018-01-22 09:53:49 -05:00
Jeffrey Walton e1f2b69638
Removed vector_ptr
vector_ptr was added at Crypto++ 5.6.5 to manage an array acquired with new[] in C++03. We can now use a combination of SecBlock and SetMark(0) to achieve the same effect.
2018-01-22 09:37:04 -05:00
Jeffrey Walton aee296d663
Fix AIX AlignedAllocate
Well, the IBM docs were not quite correct when they stated "The block is aligned so that it can be used for any type of data". The vector data types are pretty standard, even across different machines from diffent manufacturers
2018-01-21 19:48:36 -05:00
Jeffrey Walton 58f6b7695b
Cleanup Doxygen directives 2018-01-21 19:11:45 -05:00
Jeffrey Walton 8ffd165c7a
Rename nacl.h to naclite.h
This should avoid confusion with header files from the reference implementation and libsodium
2018-01-21 17:04:15 -05:00