Commit Graph

4021 Commits (c25a1e354de1d12e79ba265f37036c908ce9db8f)

Author SHA1 Message Date
Jeffrey Walton c25a1e354d
Clear conversion wanrings under MSVC 2018-08-20 10:44:36 -04:00
Jeffrey Walton c24f17b7a2
Fix compiler crash in Visual Studio .Net (2002 and 2003) 2018-08-20 08:24:12 -04:00
Jeffrey Walton 3e9a5f17d2
Disable C4231 in Visual Studio 2005 project files 2018-08-20 07:27:07 -04:00
Jeffrey Walton 01779726db
Use consistent suffix for SSE2 ASM 2018-08-20 07:16:59 -04:00
Jeffrey Walton 8c5a558663
Update Visual Studio 2005 project files 2018-08-20 07:15:17 -04:00
Jeffrey Walton 874f79c320
Fix compile on Visual Studio 2005 without serve packs 2018-08-20 05:35:34 -04:00
Jeffrey Walton 5c3532597a
Whitespace check-in 2018-08-20 01:33:09 -04:00
Jeffrey Walton 082ad86132
Fix missing _xgetbv for Visual Studio 2008 and below 2018-08-19 10:19:29 -04:00
Jeffrey Walton d41b3c8211
Fix linking rdrand.obj twice on Windows using cryptest.nmake 2018-08-19 10:06:20 -04:00
Jeffrey Walton 5489cfe3c6
Remove Asan workaround from VMAC
I was not able to duplicate it under GCC. That includes the GCC's supplied with Debian 8 and Ubuntu 14. It looks like the problem was with Asan insread of the library
2018-08-19 08:32:23 -04:00
Jeffrey Walton 5e3f38cf86
Allow previous version of shared library on Solaris 2018-08-19 07:04:19 -04:00
Jeffrey Walton 3e23c55885
Remove makefile debug print statements 2018-08-19 06:12:09 -04:00
Jeffrey Walton 9886b555d0
Add SONAME to shared object for Solaris
Also see https://blogs.oracle.com/solaris/how-to-name-a-solaris-shared-object-v2
2018-08-19 06:10:30 -04:00
Jeffrey Walton 964b92b614
Rework -pthread test for GCC on Solaris
It looks like GCC is rejecting the -pthread option but it is advertising Pthread support by defining 39 related macros. I'm not sure what to make of it, but we can't use -pthread because it breaks the compile.
2018-08-18 23:51:14 -04:00
Jeffrey Walton 3929c3594c
Add SHACAL2 cipher AlgorithmProvider() 2018-08-18 22:26:01 -04:00
Jeffrey Walton 1f5d0d85cf
Add Tiger cipher AlgorithmProvider() 2018-08-18 21:41:55 -04:00
Jeffrey Walton 92163356db
Move constant table to unnamed namespace 2018-08-18 21:41:13 -04:00
Jeffrey Walton 03d78fb783
Add Panama cipher AlgorithmProvider() 2018-08-18 14:31:00 -04:00
Jeffrey Walton a6fadbad77
Remove Provider from public key operations
Everything is C++ so there's no value added by the column
2018-08-18 12:49:16 -04:00
Tanzinul Islam ea05f2fefd Fix build for MinGW due to deleted winpipes.cpp (#705)
On my MinGW-w64 setup, the build failed:

>mingw32-make: *** No rule to make target 'winpipes.o', needed by 'libcryptopp.a'.
>mingw32-make: Target 'default' not remade because of errors.

Looks like `winpipes.cpp` was removed in f2171cbe2 but not de-listed from the `GNUmakefile`. Remove it.
2018-08-18 11:17:50 -04:00
Jeffrey Walton ef58e71d77
Discard extra noise from Autotools test script 2018-08-18 08:28:32 -04:00
Jeffrey Walton 31ebabeb1e
Cleanup headers in vmac.cpp 2018-08-18 07:21:42 -04:00
Jeffrey Walton 4282f94712
Disable X32 inline assembly (GH #686, PR #704)
Also use CRYPTOPP_DISABLE_XXX_ASM consistently. The pattern is needed for Clang which still can't compile Intel assembly language. Also see http://llvm.org/bugs/show_bug.cgi?id=24232.
2018-08-18 04:44:53 -04:00
Jeffrey Walton 06cf2ede9e
Disable ASM and intrinsics for ARM big-endian
We don't have a test rig to test things. Based on our experience with Power8 and BE/LE, there will be trouble
2018-08-18 04:31:49 -04:00
Jeffrey Walton 48f2d95b0f
Fix ChaCha debug builds
This broke at https://github.com/weidai11/cryptopp/commit/e2be0cdecce7
2018-08-18 01:31:35 -04:00
Jeffrey Walton f2171cbe2f
Remove Thread and Socket classes (GH #208, PR #703)
Also see https://groups.google.com/forum/#!topic/cryptopp-users/5btwLoxXXD4.
2018-08-17 23:55:39 -04:00
Jeffrey Walton 522da15b13
Whitespace check-in 2018-08-17 23:44:01 -04:00
Jeffrey Walton 4fe078b4b6
Use BLAKE2B_G2 macro name 2018-08-17 20:39:28 -04:00
Jeffrey Walton 25116f5aae
Enable SSSE3 and SSE4 for SIMON and SPECK on Solaris with SunCC 5.13 and above 2018-08-17 09:02:24 -04:00
Jeffrey Walton 18bfe2a50a
Fix AlgorithmProvider for CHAM and LEA on Solaris 2018-08-17 07:55:35 -04:00
Jeffrey Walton b2c5616ede
Fix AlgorithmProvider for SIMON and SPECK on Solaris 2018-08-17 07:49:35 -04:00
Jeffrey Walton e2be0cdecc
Make ChaCha an Salsa use the same design pattern 2018-08-17 06:19:30 -04:00
Jeffrey Walton 3e55bfca7d
Cleanup header includes for SSE
Travis is failing because the system headers don't guard their functions and datatypess properly
2018-08-16 19:37:36 -04:00
Jeffrey Walton 2876371cea
Add GNUmakefile-cross flags SIMON and SPECK 2018-08-16 18:24:22 -04:00
Jeffrey Walton a4c5bdf821
Remove unneeded comments 2018-08-15 13:30:11 -04:00
Jeffrey Walton 16cf591f3c
Cutover to BLAKE2 team impl
The BLAKE2 team runs a tad bit slower but we want to push maintenance onto them
2018-08-15 13:25:53 -04:00
Jeffrey Walton f28fb0a176
Add SIMON-128 and SPECK-128 source files 2018-08-15 10:02:00 -04:00
Jeffrey Walton 7a43a04048
Split simon-simd.cpp and speck-simd.cpp into separate source files
SIMON-64 and SIMON-128 have different ISA requirements. The same applies to SPECK-64 and SPECK-128. GCC generated code that resulted in a SIGILL due to the ISA differences on a down level machine. The instructions was a mtfprwz from POWER8. It was prsent in a function prologue on a POWER7 machine.
2018-08-15 09:59:40 -04:00
Jeffrey Walton eb57dc5481
Whitespace check-in 2018-08-15 05:34:05 -04:00
Jeffrey Walton 014f3d08c2
Make AdvancedProcessBlocks64_6x2_ALTIVEC inline 2018-08-15 05:18:38 -04:00
Jeffrey Walton c26aad8a25
Use PtrSub to subtract offset from pointer 2018-08-15 03:16:08 -04:00
Jeffrey Walton 1253bccf06
Add VectorLoad(word32 arr[4]) overloads 2018-08-15 02:12:27 -04:00
Jeffrey Walton 6f1caab7c2
Move SIMON-64 and SPECK-64 to Power7 minimum
SIMON-64 and SPECK-64 don't use 64-bit type so they can run on Power7. We may be able to drop to Power4, but we need to test the effects of Loads and Stores without vec_vxs_ld and vec_vsx_st
2018-08-14 23:31:40 -04:00
Jeffrey Walton 62e95313af
Update comments 2018-08-14 20:49:26 -04:00
Jeffrey Walton 9d15a9ee16
Fix SIMON-64 on AIX 2018-08-14 20:44:50 -04:00
Jeffrey Walton 9a78b92429
Update comments 2018-08-14 20:04:28 -04:00
Jeffrey Walton cf0c487c2a
Fix SPECK-64 on AIX 2018-08-14 19:14:41 -04:00
Jeffrey Walton 9b91b94b05
Add POWER8 SIMON-64 implementation 2018-08-14 07:14:39 -04:00
Jeffrey Walton d8c28bdc2b
Make SPECK-64 more symmetrical 2018-08-14 06:19:34 -04:00
Jeffrey Walton f1b190740c
Update comments 2018-08-14 06:07:19 -04:00