mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 01:49:41 +00:00
Rename files with dashes to underscores (GH #736)
Also see https://groups.google.com/forum/#!topic/cryptopp-users/HBz-6gZZFOA on the mailing list
This commit is contained in:
parent
776a2195bd
commit
896225069d
50
Filelist.txt
50
Filelist.txt
@ -1,12 +1,12 @@
|
||||
3way.cpp
|
||||
3way.h
|
||||
adhoc.cpp.proto
|
||||
adv-simd.h
|
||||
adv_simd.h
|
||||
adler32.cpp
|
||||
adler32.h
|
||||
aes.h
|
||||
aes-armv4.h
|
||||
aes-armv4.S
|
||||
aes_armv4.h
|
||||
aes_armv4.S
|
||||
algebra.cpp
|
||||
algebra.h
|
||||
algparam.cpp
|
||||
@ -15,7 +15,7 @@ arc4.cpp
|
||||
arc4.h
|
||||
ariatab.cpp
|
||||
aria.cpp
|
||||
aria-simd.cpp
|
||||
aria_simd.cpp
|
||||
aria.h
|
||||
argnames.h
|
||||
asn.cpp
|
||||
@ -35,8 +35,8 @@ bench2.cpp
|
||||
bench3.cpp
|
||||
bfinit.cpp
|
||||
blake2.cpp
|
||||
blake2s-simd.cpp
|
||||
blake2b-simd.cpp
|
||||
blake2s_simd.cpp
|
||||
blake2b_simd.cpp
|
||||
blake2.h
|
||||
blowfish.cpp
|
||||
blowfish.h
|
||||
@ -52,11 +52,11 @@ cbcmac.h
|
||||
ccm.cpp
|
||||
ccm.h
|
||||
chacha.cpp
|
||||
chacha-avx.cpp
|
||||
chacha-simd.cpp
|
||||
chacha_avx.cpp
|
||||
chacha_simd.cpp
|
||||
chacha.h
|
||||
cham.cpp
|
||||
cham-simd.cpp
|
||||
cham_simd.cpp
|
||||
cham.h
|
||||
channels.cpp
|
||||
channels.h
|
||||
@ -66,7 +66,7 @@ config.h
|
||||
cpu.cpp
|
||||
cpu.h
|
||||
crc.cpp
|
||||
crc-simd.cpp
|
||||
crc_simd.cpp
|
||||
crc.h
|
||||
cryptdll.vcxproj
|
||||
cryptdll.vcxproj.filters
|
||||
@ -130,7 +130,7 @@ fips140.h
|
||||
fipsalgt.cpp
|
||||
fipstest.cpp
|
||||
fltrimpl.h
|
||||
gcm-simd.cpp
|
||||
gcm_simd.cpp
|
||||
gcm.cpp
|
||||
gcm.h
|
||||
gf256.cpp
|
||||
@ -178,7 +178,7 @@ keccakc.cpp
|
||||
keccakc.h
|
||||
lubyrack.h
|
||||
lea.cpp
|
||||
lea-simd.cpp
|
||||
lea_simd.cpp
|
||||
lea.h
|
||||
luc.cpp
|
||||
luc.h
|
||||
@ -206,7 +206,7 @@ mqv.h
|
||||
naclite.h
|
||||
nbtheory.cpp
|
||||
nbtheory.h
|
||||
neon-simd.cpp
|
||||
neon_simd.cpp
|
||||
nr.h
|
||||
oaep.cpp
|
||||
oaep.h
|
||||
@ -226,8 +226,8 @@ poly1305.cpp
|
||||
poly1305.h
|
||||
polynomi.cpp
|
||||
polynomi.h
|
||||
ppc-simd.h
|
||||
ppc-simd.cpp
|
||||
ppc_simd.h
|
||||
ppc_simd.cpp
|
||||
pssr.cpp
|
||||
pssr.h
|
||||
pubkey.cpp
|
||||
@ -260,7 +260,7 @@ regtest3.cpp
|
||||
regtest4.cpp
|
||||
resource.h
|
||||
rijndael.cpp
|
||||
rijndael-simd.cpp
|
||||
rijndael_simd.cpp
|
||||
rijndael.h
|
||||
ripemd.cpp
|
||||
ripemd.h
|
||||
@ -286,12 +286,12 @@ serpent.cpp
|
||||
serpent.h
|
||||
serpentp.h
|
||||
sha.cpp
|
||||
sha-simd.cpp
|
||||
sha_simd.cpp
|
||||
sha.h
|
||||
sha3.cpp
|
||||
sha3.h
|
||||
shacal2.cpp
|
||||
shacal2-simd.cpp
|
||||
shacal2_simd.cpp
|
||||
shacal2.h
|
||||
shark.cpp
|
||||
shark.h
|
||||
@ -300,30 +300,30 @@ simple.cpp
|
||||
simple.h
|
||||
siphash.h
|
||||
simeck.cpp
|
||||
simeck-simd.cpp
|
||||
simeck_simd.cpp
|
||||
simeck.h
|
||||
simon.cpp
|
||||
simon64-simd.cpp
|
||||
simon128-simd.cpp
|
||||
simon64_simd.cpp
|
||||
simon128_simd.cpp
|
||||
simon.h
|
||||
skipjack.cpp
|
||||
skipjack.h
|
||||
sm3.cpp
|
||||
sm3.h
|
||||
sm4.cpp
|
||||
sm4-simd.cpp
|
||||
sm4_simd.cpp
|
||||
sm4.h
|
||||
smartptr.h
|
||||
sosemanuk.cpp
|
||||
sosemanuk.h
|
||||
speck.cpp
|
||||
speck64-simd.cpp
|
||||
speck128-simd.cpp
|
||||
speck64_simd.cpp
|
||||
speck128_simd.cpp
|
||||
speck.h
|
||||
square.cpp
|
||||
square.h
|
||||
squaretb.cpp
|
||||
sse-simd.cpp
|
||||
sse_simd.cpp
|
||||
stdcpp.h
|
||||
strciphr.cpp
|
||||
strciphr.h
|
||||
|
50
GNUmakefile
50
GNUmakefile
@ -126,7 +126,7 @@ else
|
||||
CXXFLAGS ?= -DNDEBUG -g2 -O3
|
||||
endif
|
||||
|
||||
# On ARM we may compile aes-armv4.S though the CC compiler
|
||||
# On ARM we may compile aes_armv4.S though the CC compiler
|
||||
ifeq ($(GCC_COMPILER),1)
|
||||
CC=gcc
|
||||
else ifeq ($(CLANG_COMPILER),1)
|
||||
@ -525,7 +525,7 @@ ifneq ($(IS_PPC32)$(IS_PPC64),00)
|
||||
endif
|
||||
|
||||
# LLVM front-ends only provide Power8. It really jambs us up
|
||||
# for ppc-simd.cpp which needs ALTIVEC/POWER4. We have similar
|
||||
# for ppc_simd.cpp which needs ALTIVEC/POWER4. We have similar
|
||||
# problems {lea|cham|simon|speck|...}-simd.cpp and POWER7.
|
||||
HAVE_LLVM = $(shell $(CXX) $(CXXFLAGS) -qshowmacros -E pch.cpp 2>&1 | $(GREP) -i -c '__llvm__')
|
||||
ifneq ($(HAVE_LLVM),0)
|
||||
@ -849,7 +849,7 @@ endif
|
||||
ifeq ($(IS_ARM32),1)
|
||||
CRYPTOGAMS_AES_FLAG = -march=armv7-a
|
||||
CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack
|
||||
SRCS += aes-armv4.S
|
||||
SRCS += aes_armv4.S
|
||||
endif
|
||||
|
||||
# List cryptlib.cpp first, then cpu.cpp, then integer.cpp to tame C++ static initialization problems.
|
||||
@ -1199,91 +1199,91 @@ ifeq ($(wildcard GNUmakefile.deps),GNUmakefile.deps)
|
||||
endif # Dependencies
|
||||
|
||||
# Cryptogams ARM asm implementation.
|
||||
aes-armv4.o : aes-armv4.S
|
||||
aes_armv4.o : aes_armv4.S
|
||||
$(CC) $(strip $(CXXFLAGS) $(CRYPTOGAMS_AES_FLAG) -mfloat-abi=$(FP_ABI) -c) $<
|
||||
|
||||
# SSSE3 or NEON available
|
||||
aria-simd.o : aria-simd.cpp
|
||||
aria_simd.o : aria_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $<
|
||||
|
||||
# SSE, NEON or POWER7 available
|
||||
blake2s-simd.o : blake2s-simd.cpp
|
||||
blake2s_simd.o : blake2s_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2S_FLAG) -c) $<
|
||||
|
||||
# SSE, NEON or POWER8 available
|
||||
blake2b-simd.o : blake2b-simd.cpp
|
||||
blake2b_simd.o : blake2b_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2B_FLAG) -c) $<
|
||||
|
||||
# SSE2 or NEON available
|
||||
chacha-simd.o : chacha-simd.cpp
|
||||
chacha_simd.o : chacha_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $<
|
||||
|
||||
# AVX2 available
|
||||
chacha-avx.o : chacha-avx.cpp
|
||||
chacha_avx.o : chacha_avx.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_AVX2_FLAG) -c) $<
|
||||
|
||||
# SSSE3 available
|
||||
cham-simd.o : cham-simd.cpp
|
||||
cham_simd.o : cham_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $<
|
||||
|
||||
# SSE2 on i586
|
||||
sse-simd.o : sse-simd.cpp
|
||||
sse_simd.o : sse_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SSE_FLAG) -c) $<
|
||||
|
||||
# SSE4.2 or ARMv8a available
|
||||
crc-simd.o : crc-simd.cpp
|
||||
crc_simd.o : crc_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $<
|
||||
|
||||
# PCLMUL or ARMv7a/ARMv8a available
|
||||
gcm-simd.o : gcm-simd.cpp
|
||||
gcm_simd.o : gcm_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
|
||||
|
||||
# SSSE3 available
|
||||
lea-simd.o : lea-simd.cpp
|
||||
lea_simd.o : lea_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
|
||||
|
||||
# NEON available
|
||||
neon-simd.o : neon-simd.cpp
|
||||
neon_simd.o : neon_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $<
|
||||
|
||||
# AltiVec, Power7, Power8 available
|
||||
ppc-simd.o : ppc-simd.cpp
|
||||
ppc_simd.o : ppc_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(ALTIVEC_FLAG) -c) $<
|
||||
|
||||
# AESNI or ARMv7a/ARMv8a available
|
||||
rijndael-simd.o : rijndael-simd.cpp
|
||||
rijndael_simd.o : rijndael_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $<
|
||||
|
||||
# SSE4.2/SHA-NI or ARMv8a available
|
||||
sha-simd.o : sha-simd.cpp
|
||||
sha_simd.o : sha_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
|
||||
|
||||
# SSE4.2/SHA-NI or ARMv8a available
|
||||
shacal2-simd.o : shacal2-simd.cpp
|
||||
shacal2_simd.o : shacal2_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
|
||||
|
||||
# SSSE3 or NEON available
|
||||
simeck-simd.o : simeck-simd.cpp
|
||||
simeck_simd.o : simeck_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $<
|
||||
|
||||
# SSE4.1, NEON or POWER7 available
|
||||
simon64-simd.o : simon64-simd.cpp
|
||||
simon64_simd.o : simon64_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $<
|
||||
|
||||
# SSSE3, NEON or POWER8 available
|
||||
simon128-simd.o : simon128-simd.cpp
|
||||
simon128_simd.o : simon128_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $<
|
||||
|
||||
# SSE4.1, NEON or POWER7 available
|
||||
speck64-simd.o : speck64-simd.cpp
|
||||
speck64_simd.o : speck64_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $<
|
||||
|
||||
# SSSE3, NEON or POWER8 available
|
||||
speck128-simd.o : speck128-simd.cpp
|
||||
speck128_simd.o : speck128_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $<
|
||||
|
||||
# AESNI available
|
||||
sm4-simd.o : sm4-simd.cpp
|
||||
sm4_simd.o : sm4_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $<
|
||||
|
||||
# IBM XLC -O3 optimization bug
|
||||
|
@ -374,7 +374,7 @@ INCL := $(filter-out resource.h,$(sort $(wildcard *.h)))
|
||||
ifeq ($(IS_ARM32),1)
|
||||
CRYPTOGAMS_AES_FLAG = -march=armv7-a
|
||||
CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack
|
||||
SRCS += aes-armv4.S
|
||||
SRCS += aes_armv4.S
|
||||
endif
|
||||
|
||||
# List cryptlib.cpp first, then cpu.cpp, then integer.cpp to tame C++ static initialization problems.
|
||||
@ -568,23 +568,23 @@ cpu-features.o: cpu-features.h cpu-features.c
|
||||
$(CXX) $(strip $(CXXFLAGS) -fpermissive -c) cpu-features.c
|
||||
|
||||
# Cryptogams ARM asm implementation.
|
||||
aes-armv4.o : aes-armv4.S
|
||||
aes_armv4.o : aes_armv4.S
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CRYPTOGAMS_AES_FLAG) -c) $<
|
||||
|
||||
# SSE4.2 or NEON available
|
||||
aria-simd.o : aria-simd.cpp
|
||||
aria_simd.o : aria_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $<
|
||||
|
||||
# SSE4.2 or ARMv8a available
|
||||
blake2-simd.o : blake2-simd.cpp
|
||||
blake2_simd.o : blake2-simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2_FLAG) -c) $<
|
||||
|
||||
# SSE2 or NEON available
|
||||
chacha-simd.o : chacha-simd.cpp
|
||||
chacha_simd.o : chacha_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $<
|
||||
|
||||
# SSSE3 available
|
||||
cham-simd.o : cham-simd.cpp
|
||||
cham_simd.o : cham_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $<
|
||||
|
||||
# SSE2 on i586
|
||||
@ -592,55 +592,55 @@ cpu.o : cpu.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CPU_FLAG) -c) $<
|
||||
|
||||
# SSE4.2 or ARMv8a available
|
||||
crc-simd.o : crc-simd.cpp
|
||||
crc_simd.o : crc_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $<
|
||||
|
||||
# PCLMUL or ARMv7a/ARMv8a available
|
||||
gcm-simd.o : gcm-simd.cpp
|
||||
gcm_simd.o : gcm_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
|
||||
|
||||
# SSSE3 or ARMv8a available
|
||||
lea-simd.o : lea-simd.cpp
|
||||
lea_simd.o : lea_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
|
||||
|
||||
# NEON available
|
||||
neon-simd.o : neon-simd.cpp
|
||||
neon_simd.o : neon_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $<
|
||||
|
||||
# AESNI or ARMv7a/ARMv8a available
|
||||
rijndael-simd.o : rijndael-simd.cpp
|
||||
rijndael_simd.o : rijndael_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $<
|
||||
|
||||
# SSE4.2/SHA-NI or ARMv8a available
|
||||
sha-simd.o : sha-simd.cpp
|
||||
sha_simd.o : sha_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
|
||||
|
||||
# SSE4.2/SHA-NI or ARMv8a available
|
||||
shacal2-simd.o : shacal2-simd.cpp
|
||||
shacal2_simd.o : shacal2_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
|
||||
|
||||
# SSSE3 or NEON available
|
||||
simeck-simd.o : simeck-simd.cpp
|
||||
simeck_simd.o : simeck_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $<
|
||||
|
||||
# SSE4.1, NEON or POWER7 available
|
||||
simon64-simd.o : simon64-simd.cpp
|
||||
simon64_simd.o : simon64_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $<
|
||||
|
||||
# SSSE3, NEON or POWER8 available
|
||||
simon128-simd.o : simon128-simd.cpp
|
||||
simon128_simd.o : simon128_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $<
|
||||
|
||||
# SSE4.1, NEON or POWER7 available
|
||||
speck64-simd.o : speck64-simd.cpp
|
||||
speck64_simd.o : speck64_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $<
|
||||
|
||||
# SSSE3, NEON or POWER8 available
|
||||
speck128-simd.o : speck128-simd.cpp
|
||||
speck128_simd.o : speck128_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $<
|
||||
|
||||
# AESNI available
|
||||
sm4-simd.o : sm4-simd.cpp
|
||||
sm4_simd.o : sm4_simd.cpp
|
||||
$(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $<
|
||||
|
||||
%.o : %.cpp
|
||||
|
@ -1,13 +1,13 @@
|
||||
// adv-simd.h - written and placed in the public domain by Jeffrey Walton
|
||||
// adv_simd.h - written and placed in the public domain by Jeffrey Walton
|
||||
|
||||
/// \file adv-simd.h
|
||||
/// \file adv_simd.h
|
||||
/// \brief Template for AdvancedProcessBlocks and SIMD processing
|
||||
|
||||
// The SIMD based implementations for ciphers that use SSE, NEON and Power7
|
||||
// have a commom pattern. Namely, they have a specialized implementation of
|
||||
// AdvancedProcessBlocks which processes multiple block using hardware
|
||||
// acceleration. After several implementations we noticed a lot of copy and
|
||||
// paste occuring. adv-simd.h provides a template to avoid the copy and paste.
|
||||
// paste occuring. adv_simd.h provides a template to avoid the copy and paste.
|
||||
//
|
||||
// There are 11 templates provided in this file. The number following the
|
||||
// function name, 64 or 128, is the block size. The name following the block
|
||||
@ -71,7 +71,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// ************************ All block ciphers *********************** //
|
@ -1,4 +1,4 @@
|
||||
// aria-simd.cpp - written and placed in the public domain by
|
||||
// aria_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to ARMv7a and
|
@ -42,7 +42,7 @@
|
||||
#endif
|
||||
|
||||
#if (CRYPTOPP_POWER8_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
@ -42,7 +42,7 @@
|
||||
#endif
|
||||
|
||||
#if (CRYPTOPP_POWER7_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
@ -1,4 +1,4 @@
|
||||
// chacha-avx.cpp - written and placed in the public domain by
|
||||
// chacha_avx.cpp - written and placed in the public domain by
|
||||
// Jack Lloyd and Jeffrey Walton
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
@ -1,4 +1,4 @@
|
||||
// chacha-simd.cpp - written and placed in the public domain by
|
||||
// chacha_simd.cpp - written and placed in the public domain by
|
||||
// Jack Lloyd and Jeffrey Walton
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
||||
@ -55,7 +55,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER8_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
@ -1,4 +1,4 @@
|
||||
// cham-simd.cpp - written and placed in the public domain by Jeffrey Walton
|
||||
// cham_simd.cpp - written and placed in the public domain by Jeffrey Walton
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
||||
// SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
#include "cham.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
2
config.h
2
config.h
@ -758,7 +758,7 @@ NAMESPACE_END
|
||||
// not provide an asm implementation. The Cryptogams implementation
|
||||
// is about 2x faster than C/C++. Define this to use the Cryptogams
|
||||
// AES implementation on GNU Linux systems. When defined, Crypto++
|
||||
// will use aes-armv4.S. LLVM miscompiles aes-armv4.S so disable
|
||||
// will use aes_armv4.S. LLVM miscompiles aes_armv4.S so disable
|
||||
// under Clang. See https://bugs.llvm.org/show_bug.cgi?id=38133.
|
||||
#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__arm__)
|
||||
# if defined(__GNUC__) && !defined(__clang__)
|
||||
|
4
cpu.h
4
cpu.h
@ -18,8 +18,8 @@
|
||||
/// </pre>
|
||||
/// \details Generally speaking, CPU_Query() is in the source file <tt>cpu.cpp</tt> because it
|
||||
/// does not require special architectural flags. CPU_Probe() is in a source file that recieves
|
||||
/// architectural flags, like <tt>sse-simd.cpp</tt>, <tt>neon-simd.cpp</tt> and
|
||||
/// <tt>ppc-simd.cpp</tt>. For example, compiling <tt>neon-simd.cpp</tt> on an ARM64 machine will
|
||||
/// architectural flags, like <tt>sse_simd.cpp</tt>, <tt>neon_simd.cpp</tt> and
|
||||
/// <tt>ppc_simd.cpp</tt>. For example, compiling <tt>neon_simd.cpp</tt> on an ARM64 machine will
|
||||
/// have <tt>-march=armv8-a</tt> applied during a compile to make the instruction set architecture
|
||||
/// (ISA) available.
|
||||
/// \details The cpu probes are expensive when compared to a standard OS feature query. The library
|
||||
|
4
crc.cpp
4
crc.cpp
@ -8,13 +8,13 @@
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
// crc-simd.cpp
|
||||
// crc_simd.cpp
|
||||
#if (CRYPTOPP_ARM_CRC32_AVAILABLE)
|
||||
extern void CRC32_Update_ARMV8(const byte *s, size_t n, word32& c);
|
||||
extern void CRC32C_Update_ARMV8(const byte *s, size_t n, word32& c);
|
||||
#endif
|
||||
|
||||
// crc-simd.cpp
|
||||
// crc_simd.cpp
|
||||
#if (CRYPTOPP_SSE42_AVAILABLE)
|
||||
extern void CRC32C_Update_SSE42(const byte *s, size_t n, word32& c);
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
// crc-simd.cpp - written and placed in the public domain by
|
||||
// crc_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to SSE4.2 and
|
@ -210,7 +210,7 @@
|
||||
<ClCompile Include="fips140.cpp" />
|
||||
<ClCompile Include="fipstest.cpp" />
|
||||
<ClCompile Include="gcm.cpp" />
|
||||
<ClCompile Include="gcm-simd.cpp" />
|
||||
<ClCompile Include="gcm_simd.cpp" />
|
||||
<ClCompile Include="gf2n.cpp" />
|
||||
<ClCompile Include="gfpcrypt.cpp" />
|
||||
<ClCompile Include="hex.cpp" />
|
||||
@ -230,15 +230,15 @@
|
||||
<ClCompile Include="randpool.cpp" />
|
||||
<ClCompile Include="rdtables.cpp" />
|
||||
<ClCompile Include="rijndael.cpp" />
|
||||
<ClCompile Include="rijndael-simd.cpp" />
|
||||
<ClCompile Include="rijndael_simd.cpp" />
|
||||
<ClCompile Include="rng.cpp" />
|
||||
<ClCompile Include="rsa.cpp" />
|
||||
<ClCompile Include="rw.cpp" />
|
||||
<ClCompile Include="sha.cpp" />
|
||||
<ClCompile Include="sha-simd.cpp" />
|
||||
<ClCompile Include="sha_simd.cpp" />
|
||||
<ClCompile Include="simple.cpp" />
|
||||
<ClCompile Include="skipjack.cpp" />
|
||||
<ClCompile Include="sse-simd.cpp" />
|
||||
<ClCompile Include="sse_simd.cpp" />
|
||||
<ClCompile Include="strciphr.cpp" />
|
||||
</ItemGroup>
|
||||
<!-- Header Files -->
|
||||
|
@ -173,7 +173,7 @@
|
||||
<ClCompile Include="algparam.cpp" />
|
||||
<ClCompile Include="arc4.cpp" />
|
||||
<ClCompile Include="aria.cpp" />
|
||||
<ClCompile Include="aria-simd.cpp" />
|
||||
<ClCompile Include="aria_simd.cpp" />
|
||||
<ClCompile Include="ariatab.cpp" />
|
||||
<ClCompile Include="asn.cpp" />
|
||||
<ClCompile Include="authenc.cpp" />
|
||||
@ -182,8 +182,8 @@
|
||||
<ClCompile Include="basecode.cpp" />
|
||||
<ClCompile Include="bfinit.cpp" />
|
||||
<ClCompile Include="blake2.cpp" />
|
||||
<ClCompile Include="blake2s-simd.cpp" />
|
||||
<ClCompile Include="blake2b-simd.cpp" />
|
||||
<ClCompile Include="blake2s_simd.cpp" />
|
||||
<ClCompile Include="blake2b_simd.cpp" />
|
||||
<ClCompile Include="blowfish.cpp" />
|
||||
<ClCompile Include="blumshub.cpp" />
|
||||
<ClCompile Include="camellia.cpp" />
|
||||
@ -192,17 +192,17 @@
|
||||
<ClCompile Include="cbcmac.cpp" />
|
||||
<ClCompile Include="ccm.cpp" />
|
||||
<ClCompile Include="chacha.cpp" />
|
||||
<ClCompile Include="chacha-simd.cpp" />
|
||||
<ClCompile Include="chacha-avx.cpp">
|
||||
<ClCompile Include="chacha_simd.cpp" />
|
||||
<ClCompile Include="chacha_avx.cpp">
|
||||
<!-- Requires Visual Studio 2013 and above -->
|
||||
<ExcludedFromBuild Condition=" '$(PlatformToolset)' == 'v100' Or '$(PlatformToolset)' == 'v110' ">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="cham.cpp" />
|
||||
<ClCompile Include="cham-simd.cpp" />
|
||||
<ClCompile Include="cham_simd.cpp" />
|
||||
<ClCompile Include="channels.cpp" />
|
||||
<ClCompile Include="cmac.cpp" />
|
||||
<ClCompile Include="crc.cpp" />
|
||||
<ClCompile Include="crc-simd.cpp" />
|
||||
<ClCompile Include="crc_simd.cpp" />
|
||||
<ClCompile Include="default.cpp" />
|
||||
<ClCompile Include="des.cpp" />
|
||||
<ClCompile Include="dessp.cpp" />
|
||||
@ -229,7 +229,7 @@
|
||||
<ClCompile Include="fips140.cpp" />
|
||||
<ClCompile Include="fipstest.cpp" />
|
||||
<ClCompile Include="gcm.cpp" />
|
||||
<ClCompile Include="gcm-simd.cpp" />
|
||||
<ClCompile Include="gcm_simd.cpp" />
|
||||
<ClCompile Include="gf256.cpp" />
|
||||
<ClCompile Include="gf2_32.cpp" />
|
||||
<ClCompile Include="gf2n.cpp" />
|
||||
@ -252,7 +252,7 @@
|
||||
<ClCompile Include="keccak.cpp" />
|
||||
<ClCompile Include="keccakc.cpp" />
|
||||
<ClCompile Include="lea.cpp" />
|
||||
<ClCompile Include="lea-simd.cpp" />
|
||||
<ClCompile Include="lea_simd.cpp" />
|
||||
<ClCompile Include="luc.cpp" />
|
||||
<ClCompile Include="mars.cpp" />
|
||||
<ClCompile Include="marss.cpp" />
|
||||
@ -286,7 +286,7 @@
|
||||
<ClCompile Include="rdrand.cpp" />
|
||||
<ClCompile Include="rdtables.cpp" />
|
||||
<ClCompile Include="rijndael.cpp" />
|
||||
<ClCompile Include="rijndael-simd.cpp" />
|
||||
<ClCompile Include="rijndael_simd.cpp" />
|
||||
<ClCompile Include="ripemd.cpp" />
|
||||
<ClCompile Include="rng.cpp" />
|
||||
<ClCompile Include="rsa.cpp" />
|
||||
@ -298,29 +298,29 @@
|
||||
<ClCompile Include="seed.cpp" />
|
||||
<ClCompile Include="serpent.cpp" />
|
||||
<ClCompile Include="sha.cpp" />
|
||||
<ClCompile Include="sha-simd.cpp" />
|
||||
<ClCompile Include="sha_simd.cpp" />
|
||||
<ClCompile Include="sha3.cpp" />
|
||||
<ClCompile Include="shacal2.cpp" />
|
||||
<ClCompile Include="shacal2-simd.cpp" />
|
||||
<ClCompile Include="shacal2_simd.cpp" />
|
||||
<ClCompile Include="shark.cpp" />
|
||||
<ClCompile Include="sharkbox.cpp" />
|
||||
<ClCompile Include="simeck.cpp" />
|
||||
<ClCompile Include="simeck-simd.cpp" />
|
||||
<ClCompile Include="simeck_simd.cpp" />
|
||||
<ClCompile Include="simon.cpp" />
|
||||
<ClCompile Include="simon64-simd.cpp" />
|
||||
<ClCompile Include="simon128-simd.cpp" />
|
||||
<ClCompile Include="simon64_simd.cpp" />
|
||||
<ClCompile Include="simon128_simd.cpp" />
|
||||
<ClCompile Include="simple.cpp" />
|
||||
<ClCompile Include="skipjack.cpp" />
|
||||
<ClCompile Include="sm3.cpp" />
|
||||
<ClCompile Include="sm4.cpp" />
|
||||
<ClCompile Include="sm4-simd.cpp" />
|
||||
<ClCompile Include="sm4_simd.cpp" />
|
||||
<ClCompile Include="sosemanuk.cpp" />
|
||||
<ClCompile Include="speck.cpp" />
|
||||
<ClCompile Include="speck64-simd.cpp" />
|
||||
<ClCompile Include="speck128-simd.cpp" />
|
||||
<ClCompile Include="speck64_simd.cpp" />
|
||||
<ClCompile Include="speck128_simd.cpp" />
|
||||
<ClCompile Include="square.cpp" />
|
||||
<ClCompile Include="squaretb.cpp" />
|
||||
<ClCompile Include="sse-simd.cpp" />
|
||||
<ClCompile Include="sse_simd.cpp" />
|
||||
<ClCompile Include="strciphr.cpp" />
|
||||
<ClCompile Include="tea.cpp" />
|
||||
<ClCompile Include="tftables.cpp" />
|
||||
@ -377,7 +377,7 @@
|
||||
<ItemGroup>
|
||||
<ClInclude Include="3way.h" />
|
||||
<ClInclude Include="adler32.h" />
|
||||
<ClInclude Include="adv-simd.h" />
|
||||
<ClInclude Include="adv_simd.h" />
|
||||
<ClInclude Include="aes.h" />
|
||||
<ClInclude Include="algebra.h" />
|
||||
<ClInclude Include="algparam.h" />
|
||||
|
@ -1,4 +1,4 @@
|
||||
// gcm-simd.cpp - written and placed in the public domain by
|
||||
// gcm_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
// Original x86 CLMUL by Wei Dai. ARM and POWER8
|
||||
// PMULL and VMULL by JW, UB and MR.
|
||||
@ -39,7 +39,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY
|
||||
@ -186,7 +186,7 @@ using CryptoPP::VectorRotateLeft;
|
||||
// algorithm on both big and little-endian systems, but it is
|
||||
// awful to try to follow the logic because it is so backwards.
|
||||
// Because functions like VMULL_NN are so backwards we can't put
|
||||
// them in ppc-simd.h. They simply don't work the way a typical
|
||||
// them in ppc_simd.h. They simply don't work the way a typical
|
||||
// user expects them to work.
|
||||
|
||||
inline uint64x2_p VMULL2LE(const uint64x2_p& val)
|
@ -1,4 +1,4 @@
|
||||
// lea-simd.cpp - written and placed in the public domain by Jeffrey Walton
|
||||
// lea_simd.cpp - written and placed in the public domain by Jeffrey Walton
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
||||
// SSSE3, ARM NEON and ARMv8a, and Power8 Altivec instructions. A separate
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
#include "lea.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
||||
@ -58,7 +58,7 @@
|
||||
|
||||
#undef CRYPTOPP_POWER8_AVAILABLE
|
||||
#if defined(CRYPTOPP_POWER8_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
2
modes.h
2
modes.h
@ -242,7 +242,7 @@ protected:
|
||||
void CipherResynchronize(byte *keystreamBuffer, const byte *iv, size_t length);
|
||||
void SeekToIteration(lword iterationCount);
|
||||
|
||||
// adv-simd.h increments the counter
|
||||
// adv_simd.h increments the counter
|
||||
mutable SecByteBlock m_counterArray;
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
// crc-simd.cpp - written and placed in the public domain by
|
||||
// crc_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to ARMv7a and
|
@ -1,4 +1,4 @@
|
||||
// ppc-simd.cpp - written and placed in the public domain by
|
||||
// ppc_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to AltiVec,
|
||||
@ -11,7 +11,7 @@
|
||||
#include "stdcpp.h"
|
||||
|
||||
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY
|
@ -1,6 +1,6 @@
|
||||
// ppc-simd.h - written and placed in public domain by Jeffrey Walton
|
||||
// ppc_simd.h - written and placed in public domain by Jeffrey Walton
|
||||
|
||||
/// \file ppc-simd.h
|
||||
/// \file ppc_simd.h
|
||||
/// \brief Support functions for PowerPC and vector operations
|
||||
/// \details This header provides an agnostic interface into GCC and
|
||||
/// IBM XL C/C++ compilers modulo their different built-in functions
|
@ -6,7 +6,7 @@
|
||||
|
||||
/*
|
||||
July 2018: Added support for ARMv7 AES instructions via Cryptogams ASM.
|
||||
See the head notes in aes-armv4.S for copyright and license.
|
||||
See the head notes in aes_armv4.S for copyright and license.
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
// rijndael-simd.cpp - written and placed in the public domain by
|
||||
// rijndael_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
// AES-NI code originally written by Wei Dai.
|
||||
//
|
||||
@ -23,7 +23,7 @@
|
||||
#include "pch.h"
|
||||
#include "config.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
#if (CRYPTOPP_AESNI_AVAILABLE)
|
||||
# include <smmintrin.h>
|
||||
@ -40,7 +40,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER8_AES_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY
|
2
sha.cpp
2
sha.cpp
@ -73,7 +73,7 @@ extern void SHA256_HashMultipleBlocks_POWER8(word32 *state, const word32 *data,
|
||||
extern void SHA512_HashMultipleBlocks_POWER8(word64 *state, const word64 *data, size_t length, ByteOrder order);
|
||||
#endif
|
||||
|
||||
// We add extern to export table to sha-simd.cpp, but it
|
||||
// We add extern to export table to sha_simd.cpp, but it
|
||||
// cleared http://github.com/weidai11/cryptopp/issues/502
|
||||
extern const word32 SHA256_K[64];
|
||||
extern const word64 SHA512_K[80];
|
||||
|
@ -1,4 +1,4 @@
|
||||
// sha-simd.cpp - written and placed in the public domain by
|
||||
// sha_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to SHA-NI and
|
||||
@ -33,7 +33,7 @@
|
||||
#endif
|
||||
|
||||
#if CRYPTOPP_POWER8_SHA_AVAILABLE
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY
|
@ -1,4 +1,4 @@
|
||||
// simeck-simd.cpp - written and placed in the public domain by Gangqiang Yang and Jeffrey Walton.
|
||||
// simeck_simd.cpp - written and placed in the public domain by Gangqiang Yang and Jeffrey Walton.
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
||||
// SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
#include "simeck.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "simon.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
||||
@ -43,7 +43,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER7_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "simon.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
||||
@ -47,7 +47,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER7_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
@ -1,4 +1,4 @@
|
||||
// sm4-simd.cpp - written and placed in the public domain by
|
||||
// sm4_simd.cpp - written and placed in the public domain by
|
||||
// Markku-Juhani O. Saarinen and Jeffrey Walton
|
||||
//
|
||||
// This source file uses intrinsics and built-ins to gain access to
|
||||
@ -15,7 +15,7 @@
|
||||
|
||||
#include "sm4.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE.
|
||||
// Do so in both simon.cpp and simon-simd.cpp.
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "speck.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both speck.cpp and speck-simd.cpp.
|
||||
@ -43,7 +43,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER7_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include "speck.h"
|
||||
#include "misc.h"
|
||||
#include "adv-simd.h"
|
||||
#include "adv_simd.h"
|
||||
|
||||
// Uncomment for benchmarking C++ against SSE or NEON.
|
||||
// Do so in both speck.cpp and speck-simd.cpp.
|
||||
@ -47,7 +47,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CRYPTOPP_POWER7_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
// Squash MS LNK4221 and libtool warnings
|
@ -1,4 +1,4 @@
|
||||
// sse-simd.cpp - written and placed in the public domain by
|
||||
// sse_simd.cpp - written and placed in the public domain by
|
||||
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
|
||||
//
|
||||
// This source file uses intrinsics to gain access to SSE for CPU
|
@ -15,7 +15,7 @@
|
||||
#include "zlib.h"
|
||||
|
||||
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
|
||||
# include "ppc-simd.h"
|
||||
# include "ppc_simd.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
Loading…
Reference in New Issue
Block a user