Rename files with dashes to underscores (GH #736)

Also see https://groups.google.com/forum/#!topic/cryptopp-users/HBz-6gZZFOA on the mailing list
pull/737/head
Jeffrey Walton 2018-11-10 08:00:14 -05:00
parent 776a2195bd
commit 896225069d
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
37 changed files with 144 additions and 144 deletions

View File

@ -1,12 +1,12 @@
3way.cpp 3way.cpp
3way.h 3way.h
adhoc.cpp.proto adhoc.cpp.proto
adv-simd.h adv_simd.h
adler32.cpp adler32.cpp
adler32.h adler32.h
aes.h aes.h
aes-armv4.h aes_armv4.h
aes-armv4.S aes_armv4.S
algebra.cpp algebra.cpp
algebra.h algebra.h
algparam.cpp algparam.cpp
@ -15,7 +15,7 @@ arc4.cpp
arc4.h arc4.h
ariatab.cpp ariatab.cpp
aria.cpp aria.cpp
aria-simd.cpp aria_simd.cpp
aria.h aria.h
argnames.h argnames.h
asn.cpp asn.cpp
@ -35,8 +35,8 @@ bench2.cpp
bench3.cpp bench3.cpp
bfinit.cpp bfinit.cpp
blake2.cpp blake2.cpp
blake2s-simd.cpp blake2s_simd.cpp
blake2b-simd.cpp blake2b_simd.cpp
blake2.h blake2.h
blowfish.cpp blowfish.cpp
blowfish.h blowfish.h
@ -52,11 +52,11 @@ cbcmac.h
ccm.cpp ccm.cpp
ccm.h ccm.h
chacha.cpp chacha.cpp
chacha-avx.cpp chacha_avx.cpp
chacha-simd.cpp chacha_simd.cpp
chacha.h chacha.h
cham.cpp cham.cpp
cham-simd.cpp cham_simd.cpp
cham.h cham.h
channels.cpp channels.cpp
channels.h channels.h
@ -66,7 +66,7 @@ config.h
cpu.cpp cpu.cpp
cpu.h cpu.h
crc.cpp crc.cpp
crc-simd.cpp crc_simd.cpp
crc.h crc.h
cryptdll.vcxproj cryptdll.vcxproj
cryptdll.vcxproj.filters cryptdll.vcxproj.filters
@ -130,7 +130,7 @@ fips140.h
fipsalgt.cpp fipsalgt.cpp
fipstest.cpp fipstest.cpp
fltrimpl.h fltrimpl.h
gcm-simd.cpp gcm_simd.cpp
gcm.cpp gcm.cpp
gcm.h gcm.h
gf256.cpp gf256.cpp
@ -178,7 +178,7 @@ keccakc.cpp
keccakc.h keccakc.h
lubyrack.h lubyrack.h
lea.cpp lea.cpp
lea-simd.cpp lea_simd.cpp
lea.h lea.h
luc.cpp luc.cpp
luc.h luc.h
@ -206,7 +206,7 @@ mqv.h
naclite.h naclite.h
nbtheory.cpp nbtheory.cpp
nbtheory.h nbtheory.h
neon-simd.cpp neon_simd.cpp
nr.h nr.h
oaep.cpp oaep.cpp
oaep.h oaep.h
@ -226,8 +226,8 @@ poly1305.cpp
poly1305.h poly1305.h
polynomi.cpp polynomi.cpp
polynomi.h polynomi.h
ppc-simd.h ppc_simd.h
ppc-simd.cpp ppc_simd.cpp
pssr.cpp pssr.cpp
pssr.h pssr.h
pubkey.cpp pubkey.cpp
@ -260,7 +260,7 @@ regtest3.cpp
regtest4.cpp regtest4.cpp
resource.h resource.h
rijndael.cpp rijndael.cpp
rijndael-simd.cpp rijndael_simd.cpp
rijndael.h rijndael.h
ripemd.cpp ripemd.cpp
ripemd.h ripemd.h
@ -286,12 +286,12 @@ serpent.cpp
serpent.h serpent.h
serpentp.h serpentp.h
sha.cpp sha.cpp
sha-simd.cpp sha_simd.cpp
sha.h sha.h
sha3.cpp sha3.cpp
sha3.h sha3.h
shacal2.cpp shacal2.cpp
shacal2-simd.cpp shacal2_simd.cpp
shacal2.h shacal2.h
shark.cpp shark.cpp
shark.h shark.h
@ -300,30 +300,30 @@ simple.cpp
simple.h simple.h
siphash.h siphash.h
simeck.cpp simeck.cpp
simeck-simd.cpp simeck_simd.cpp
simeck.h simeck.h
simon.cpp simon.cpp
simon64-simd.cpp simon64_simd.cpp
simon128-simd.cpp simon128_simd.cpp
simon.h simon.h
skipjack.cpp skipjack.cpp
skipjack.h skipjack.h
sm3.cpp sm3.cpp
sm3.h sm3.h
sm4.cpp sm4.cpp
sm4-simd.cpp sm4_simd.cpp
sm4.h sm4.h
smartptr.h smartptr.h
sosemanuk.cpp sosemanuk.cpp
sosemanuk.h sosemanuk.h
speck.cpp speck.cpp
speck64-simd.cpp speck64_simd.cpp
speck128-simd.cpp speck128_simd.cpp
speck.h speck.h
square.cpp square.cpp
square.h square.h
squaretb.cpp squaretb.cpp
sse-simd.cpp sse_simd.cpp
stdcpp.h stdcpp.h
strciphr.cpp strciphr.cpp
strciphr.h strciphr.h

View File

@ -126,7 +126,7 @@ else
CXXFLAGS ?= -DNDEBUG -g2 -O3 CXXFLAGS ?= -DNDEBUG -g2 -O3
endif 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) ifeq ($(GCC_COMPILER),1)
CC=gcc CC=gcc
else ifeq ($(CLANG_COMPILER),1) else ifeq ($(CLANG_COMPILER),1)
@ -525,7 +525,7 @@ ifneq ($(IS_PPC32)$(IS_PPC64),00)
endif endif
# LLVM front-ends only provide Power8. It really jambs us up # 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. # problems {lea|cham|simon|speck|...}-simd.cpp and POWER7.
HAVE_LLVM = $(shell $(CXX) $(CXXFLAGS) -qshowmacros -E pch.cpp 2>&1 | $(GREP) -i -c '__llvm__') HAVE_LLVM = $(shell $(CXX) $(CXXFLAGS) -qshowmacros -E pch.cpp 2>&1 | $(GREP) -i -c '__llvm__')
ifneq ($(HAVE_LLVM),0) ifneq ($(HAVE_LLVM),0)
@ -849,7 +849,7 @@ endif
ifeq ($(IS_ARM32),1) ifeq ($(IS_ARM32),1)
CRYPTOGAMS_AES_FLAG = -march=armv7-a CRYPTOGAMS_AES_FLAG = -march=armv7-a
CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack
SRCS += aes-armv4.S SRCS += aes_armv4.S
endif endif
# List cryptlib.cpp first, then cpu.cpp, then integer.cpp to tame C++ static initialization problems. # 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 endif # Dependencies
# Cryptogams ARM asm implementation. # 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) $< $(CC) $(strip $(CXXFLAGS) $(CRYPTOGAMS_AES_FLAG) -mfloat-abi=$(FP_ABI) -c) $<
# SSSE3 or NEON available # SSSE3 or NEON available
aria-simd.o : aria-simd.cpp aria_simd.o : aria_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $<
# SSE, NEON or POWER7 available # SSE, NEON or POWER7 available
blake2s-simd.o : blake2s-simd.cpp blake2s_simd.o : blake2s_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2S_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(BLAKE2S_FLAG) -c) $<
# SSE, NEON or POWER8 available # SSE, NEON or POWER8 available
blake2b-simd.o : blake2b-simd.cpp blake2b_simd.o : blake2b_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2B_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(BLAKE2B_FLAG) -c) $<
# SSE2 or NEON available # SSE2 or NEON available
chacha-simd.o : chacha-simd.cpp chacha_simd.o : chacha_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $<
# AVX2 available # AVX2 available
chacha-avx.o : chacha-avx.cpp chacha_avx.o : chacha_avx.cpp
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_AVX2_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CHACHA_AVX2_FLAG) -c) $<
# SSSE3 available # SSSE3 available
cham-simd.o : cham-simd.cpp cham_simd.o : cham_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $<
# SSE2 on i586 # SSE2 on i586
sse-simd.o : sse-simd.cpp sse_simd.o : sse_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SSE_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SSE_FLAG) -c) $<
# SSE4.2 or ARMv8a available # SSE4.2 or ARMv8a available
crc-simd.o : crc-simd.cpp crc_simd.o : crc_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $<
# PCLMUL or ARMv7a/ARMv8a available # PCLMUL or ARMv7a/ARMv8a available
gcm-simd.o : gcm-simd.cpp gcm_simd.o : gcm_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
# SSSE3 available # SSSE3 available
lea-simd.o : lea-simd.cpp lea_simd.o : lea_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
# NEON available # NEON available
neon-simd.o : neon-simd.cpp neon_simd.o : neon_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $<
# AltiVec, Power7, Power8 available # AltiVec, Power7, Power8 available
ppc-simd.o : ppc-simd.cpp ppc_simd.o : ppc_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(ALTIVEC_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(ALTIVEC_FLAG) -c) $<
# AESNI or ARMv7a/ARMv8a available # AESNI or ARMv7a/ARMv8a available
rijndael-simd.o : rijndael-simd.cpp rijndael_simd.o : rijndael_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $<
# SSE4.2/SHA-NI or ARMv8a available # 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) $< $(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
# SSE4.2/SHA-NI or ARMv8a available # 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) $< $(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
# SSSE3 or NEON available # SSSE3 or NEON available
simeck-simd.o : simeck-simd.cpp simeck_simd.o : simeck_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $<
# SSE4.1, NEON or POWER7 available # SSE4.1, NEON or POWER7 available
simon64-simd.o : simon64-simd.cpp simon64_simd.o : simon64_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $<
# SSSE3, NEON or POWER8 available # SSSE3, NEON or POWER8 available
simon128-simd.o : simon128-simd.cpp simon128_simd.o : simon128_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $<
# SSE4.1, NEON or POWER7 available # SSE4.1, NEON or POWER7 available
speck64-simd.o : speck64-simd.cpp speck64_simd.o : speck64_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $<
# SSSE3, NEON or POWER8 available # SSSE3, NEON or POWER8 available
speck128-simd.o : speck128-simd.cpp speck128_simd.o : speck128_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $<
# AESNI available # AESNI available
sm4-simd.o : sm4-simd.cpp sm4_simd.o : sm4_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $<
# IBM XLC -O3 optimization bug # IBM XLC -O3 optimization bug

View File

@ -374,7 +374,7 @@ INCL := $(filter-out resource.h,$(sort $(wildcard *.h)))
ifeq ($(IS_ARM32),1) ifeq ($(IS_ARM32),1)
CRYPTOGAMS_AES_FLAG = -march=armv7-a CRYPTOGAMS_AES_FLAG = -march=armv7-a
CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack CRYPTOGAMS_AES_FLAG += -Wa,--noexecstack
SRCS += aes-armv4.S SRCS += aes_armv4.S
endif endif
# List cryptlib.cpp first, then cpu.cpp, then integer.cpp to tame C++ static initialization problems. # 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 $(CXX) $(strip $(CXXFLAGS) -fpermissive -c) cpu-features.c
# Cryptogams ARM asm implementation. # Cryptogams ARM asm implementation.
aes-armv4.o : aes-armv4.S aes_armv4.o : aes_armv4.S
$(CXX) $(strip $(CXXFLAGS) $(CRYPTOGAMS_AES_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CRYPTOGAMS_AES_FLAG) -c) $<
# SSE4.2 or NEON available # SSE4.2 or NEON available
aria-simd.o : aria-simd.cpp aria_simd.o : aria_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(ARIA_FLAG) -c) $<
# SSE4.2 or ARMv8a available # SSE4.2 or ARMv8a available
blake2-simd.o : blake2-simd.cpp blake2_simd.o : blake2-simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(BLAKE2_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(BLAKE2_FLAG) -c) $<
# SSE2 or NEON available # SSE2 or NEON available
chacha-simd.o : chacha-simd.cpp chacha_simd.o : chacha_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CHACHA_FLAG) -c) $<
# SSSE3 available # SSSE3 available
cham-simd.o : cham-simd.cpp cham_simd.o : cham_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CHAM_FLAG) -c) $<
# SSE2 on i586 # SSE2 on i586
@ -592,55 +592,55 @@ cpu.o : cpu.cpp
$(CXX) $(strip $(CXXFLAGS) $(CPU_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CPU_FLAG) -c) $<
# SSE4.2 or ARMv8a available # SSE4.2 or ARMv8a available
crc-simd.o : crc-simd.cpp crc_simd.o : crc_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(CRC_FLAG) -c) $<
# PCLMUL or ARMv7a/ARMv8a available # PCLMUL or ARMv7a/ARMv8a available
gcm-simd.o : gcm-simd.cpp gcm_simd.o : gcm_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
# SSSE3 or ARMv8a available # SSSE3 or ARMv8a available
lea-simd.o : lea-simd.cpp lea_simd.o : lea_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
# NEON available # NEON available
neon-simd.o : neon-simd.cpp neon_simd.o : neon_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(NEON_FLAG) -c) $<
# AESNI or ARMv7a/ARMv8a available # AESNI or ARMv7a/ARMv8a available
rijndael-simd.o : rijndael-simd.cpp rijndael_simd.o : rijndael_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(AES_FLAG) -c) $<
# SSE4.2/SHA-NI or ARMv8a available # 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) $< $(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
# SSE4.2/SHA-NI or ARMv8a available # 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) $< $(CXX) $(strip $(CXXFLAGS) $(SHA_FLAG) -c) $<
# SSSE3 or NEON available # SSSE3 or NEON available
simeck-simd.o : simeck-simd.cpp simeck_simd.o : simeck_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMECK_FLAG) -c) $<
# SSE4.1, NEON or POWER7 available # SSE4.1, NEON or POWER7 available
simon64-simd.o : simon64-simd.cpp simon64_simd.o : simon64_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMON64_FLAG) -c) $<
# SSSE3, NEON or POWER8 available # SSSE3, NEON or POWER8 available
simon128-simd.o : simon128-simd.cpp simon128_simd.o : simon128_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SIMON128_FLAG) -c) $<
# SSE4.1, NEON or POWER7 available # SSE4.1, NEON or POWER7 available
speck64-simd.o : speck64-simd.cpp speck64_simd.o : speck64_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SPECK64_FLAG) -c) $<
# SSSE3, NEON or POWER8 available # SSSE3, NEON or POWER8 available
speck128-simd.o : speck128-simd.cpp speck128_simd.o : speck128_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SPECK128_FLAG) -c) $<
# AESNI available # AESNI available
sm4-simd.o : sm4-simd.cpp sm4_simd.o : sm4_simd.cpp
$(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $< $(CXX) $(strip $(CXXFLAGS) $(SM4_FLAG) -c) $<
%.o : %.cpp %.o : %.cpp

View File

@ -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 /// \brief Template for AdvancedProcessBlocks and SIMD processing
// The SIMD based implementations for ciphers that use SSE, NEON and Power7 // The SIMD based implementations for ciphers that use SSE, NEON and Power7
// have a commom pattern. Namely, they have a specialized implementation of // have a commom pattern. Namely, they have a specialized implementation of
// AdvancedProcessBlocks which processes multiple block using hardware // AdvancedProcessBlocks which processes multiple block using hardware
// acceleration. After several implementations we noticed a lot of copy and // 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 // 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 // function name, 64 or 128, is the block size. The name following the block
@ -71,7 +71,7 @@
#endif #endif
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE) #if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// ************************ All block ciphers *********************** // // ************************ All block ciphers *********************** //

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to ARMv7a and // This source file uses intrinsics to gain access to ARMv7a and

View File

@ -42,7 +42,7 @@
#endif #endif
#if (CRYPTOPP_POWER8_AVAILABLE) #if (CRYPTOPP_POWER8_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)

View File

@ -42,7 +42,7 @@
#endif #endif
#if (CRYPTOPP_POWER7_AVAILABLE) #if (CRYPTOPP_POWER7_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)

View File

@ -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 // Jack Lloyd and Jeffrey Walton
// //
// This source file uses intrinsics and built-ins to gain access to // This source file uses intrinsics and built-ins to gain access to

View File

@ -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 // Jack Lloyd and Jeffrey Walton
// //
// This source file uses intrinsics and built-ins to gain access to // This source file uses intrinsics and built-ins to gain access to
@ -55,7 +55,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER8_AVAILABLE) #if defined(CRYPTOPP_POWER8_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -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 // This source file uses intrinsics and built-ins to gain access to
// SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate // SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate
@ -10,7 +10,7 @@
#include "cham.h" #include "cham.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.

View File

@ -758,7 +758,7 @@ NAMESPACE_END
// not provide an asm implementation. The Cryptogams implementation // not provide an asm implementation. The Cryptogams implementation
// is about 2x faster than C/C++. Define this to use the Cryptogams // is about 2x faster than C/C++. Define this to use the Cryptogams
// AES implementation on GNU Linux systems. When defined, Crypto++ // 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. // under Clang. See https://bugs.llvm.org/show_bug.cgi?id=38133.
#if !defined(CRYPTOPP_DISABLE_ASM) && defined(__arm__) #if !defined(CRYPTOPP_DISABLE_ASM) && defined(__arm__)
# if defined(__GNUC__) && !defined(__clang__) # if defined(__GNUC__) && !defined(__clang__)

4
cpu.h
View File

@ -18,8 +18,8 @@
/// </pre> /// </pre>
/// \details Generally speaking, CPU_Query() is in the source file <tt>cpu.cpp</tt> because it /// \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 /// 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 /// 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 /// <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 /// have <tt>-march=armv8-a</tt> applied during a compile to make the instruction set architecture
/// (ISA) available. /// (ISA) available.
/// \details The cpu probes are expensive when compared to a standard OS feature query. The library /// \details The cpu probes are expensive when compared to a standard OS feature query. The library

View File

@ -8,13 +8,13 @@
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)
// crc-simd.cpp // crc_simd.cpp
#if (CRYPTOPP_ARM_CRC32_AVAILABLE) #if (CRYPTOPP_ARM_CRC32_AVAILABLE)
extern void CRC32_Update_ARMV8(const byte *s, size_t n, word32& c); 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); extern void CRC32C_Update_ARMV8(const byte *s, size_t n, word32& c);
#endif #endif
// crc-simd.cpp // crc_simd.cpp
#if (CRYPTOPP_SSE42_AVAILABLE) #if (CRYPTOPP_SSE42_AVAILABLE)
extern void CRC32C_Update_SSE42(const byte *s, size_t n, word32& c); extern void CRC32C_Update_SSE42(const byte *s, size_t n, word32& c);
#endif #endif

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to SSE4.2 and // This source file uses intrinsics to gain access to SSE4.2 and

View File

@ -210,7 +210,7 @@
<ClCompile Include="fips140.cpp" /> <ClCompile Include="fips140.cpp" />
<ClCompile Include="fipstest.cpp" /> <ClCompile Include="fipstest.cpp" />
<ClCompile Include="gcm.cpp" /> <ClCompile Include="gcm.cpp" />
<ClCompile Include="gcm-simd.cpp" /> <ClCompile Include="gcm_simd.cpp" />
<ClCompile Include="gf2n.cpp" /> <ClCompile Include="gf2n.cpp" />
<ClCompile Include="gfpcrypt.cpp" /> <ClCompile Include="gfpcrypt.cpp" />
<ClCompile Include="hex.cpp" /> <ClCompile Include="hex.cpp" />
@ -230,15 +230,15 @@
<ClCompile Include="randpool.cpp" /> <ClCompile Include="randpool.cpp" />
<ClCompile Include="rdtables.cpp" /> <ClCompile Include="rdtables.cpp" />
<ClCompile Include="rijndael.cpp" /> <ClCompile Include="rijndael.cpp" />
<ClCompile Include="rijndael-simd.cpp" /> <ClCompile Include="rijndael_simd.cpp" />
<ClCompile Include="rng.cpp" /> <ClCompile Include="rng.cpp" />
<ClCompile Include="rsa.cpp" /> <ClCompile Include="rsa.cpp" />
<ClCompile Include="rw.cpp" /> <ClCompile Include="rw.cpp" />
<ClCompile Include="sha.cpp" /> <ClCompile Include="sha.cpp" />
<ClCompile Include="sha-simd.cpp" /> <ClCompile Include="sha_simd.cpp" />
<ClCompile Include="simple.cpp" /> <ClCompile Include="simple.cpp" />
<ClCompile Include="skipjack.cpp" /> <ClCompile Include="skipjack.cpp" />
<ClCompile Include="sse-simd.cpp" /> <ClCompile Include="sse_simd.cpp" />
<ClCompile Include="strciphr.cpp" /> <ClCompile Include="strciphr.cpp" />
</ItemGroup> </ItemGroup>
<!-- Header Files --> <!-- Header Files -->

View File

@ -173,7 +173,7 @@
<ClCompile Include="algparam.cpp" /> <ClCompile Include="algparam.cpp" />
<ClCompile Include="arc4.cpp" /> <ClCompile Include="arc4.cpp" />
<ClCompile Include="aria.cpp" /> <ClCompile Include="aria.cpp" />
<ClCompile Include="aria-simd.cpp" /> <ClCompile Include="aria_simd.cpp" />
<ClCompile Include="ariatab.cpp" /> <ClCompile Include="ariatab.cpp" />
<ClCompile Include="asn.cpp" /> <ClCompile Include="asn.cpp" />
<ClCompile Include="authenc.cpp" /> <ClCompile Include="authenc.cpp" />
@ -182,8 +182,8 @@
<ClCompile Include="basecode.cpp" /> <ClCompile Include="basecode.cpp" />
<ClCompile Include="bfinit.cpp" /> <ClCompile Include="bfinit.cpp" />
<ClCompile Include="blake2.cpp" /> <ClCompile Include="blake2.cpp" />
<ClCompile Include="blake2s-simd.cpp" /> <ClCompile Include="blake2s_simd.cpp" />
<ClCompile Include="blake2b-simd.cpp" /> <ClCompile Include="blake2b_simd.cpp" />
<ClCompile Include="blowfish.cpp" /> <ClCompile Include="blowfish.cpp" />
<ClCompile Include="blumshub.cpp" /> <ClCompile Include="blumshub.cpp" />
<ClCompile Include="camellia.cpp" /> <ClCompile Include="camellia.cpp" />
@ -192,17 +192,17 @@
<ClCompile Include="cbcmac.cpp" /> <ClCompile Include="cbcmac.cpp" />
<ClCompile Include="ccm.cpp" /> <ClCompile Include="ccm.cpp" />
<ClCompile Include="chacha.cpp" /> <ClCompile Include="chacha.cpp" />
<ClCompile Include="chacha-simd.cpp" /> <ClCompile Include="chacha_simd.cpp" />
<ClCompile Include="chacha-avx.cpp"> <ClCompile Include="chacha_avx.cpp">
<!-- Requires Visual Studio 2013 and above --> <!-- Requires Visual Studio 2013 and above -->
<ExcludedFromBuild Condition=" '$(PlatformToolset)' == 'v100' Or '$(PlatformToolset)' == 'v110' ">true</ExcludedFromBuild> <ExcludedFromBuild Condition=" '$(PlatformToolset)' == 'v100' Or '$(PlatformToolset)' == 'v110' ">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="cham.cpp" /> <ClCompile Include="cham.cpp" />
<ClCompile Include="cham-simd.cpp" /> <ClCompile Include="cham_simd.cpp" />
<ClCompile Include="channels.cpp" /> <ClCompile Include="channels.cpp" />
<ClCompile Include="cmac.cpp" /> <ClCompile Include="cmac.cpp" />
<ClCompile Include="crc.cpp" /> <ClCompile Include="crc.cpp" />
<ClCompile Include="crc-simd.cpp" /> <ClCompile Include="crc_simd.cpp" />
<ClCompile Include="default.cpp" /> <ClCompile Include="default.cpp" />
<ClCompile Include="des.cpp" /> <ClCompile Include="des.cpp" />
<ClCompile Include="dessp.cpp" /> <ClCompile Include="dessp.cpp" />
@ -229,7 +229,7 @@
<ClCompile Include="fips140.cpp" /> <ClCompile Include="fips140.cpp" />
<ClCompile Include="fipstest.cpp" /> <ClCompile Include="fipstest.cpp" />
<ClCompile Include="gcm.cpp" /> <ClCompile Include="gcm.cpp" />
<ClCompile Include="gcm-simd.cpp" /> <ClCompile Include="gcm_simd.cpp" />
<ClCompile Include="gf256.cpp" /> <ClCompile Include="gf256.cpp" />
<ClCompile Include="gf2_32.cpp" /> <ClCompile Include="gf2_32.cpp" />
<ClCompile Include="gf2n.cpp" /> <ClCompile Include="gf2n.cpp" />
@ -252,7 +252,7 @@
<ClCompile Include="keccak.cpp" /> <ClCompile Include="keccak.cpp" />
<ClCompile Include="keccakc.cpp" /> <ClCompile Include="keccakc.cpp" />
<ClCompile Include="lea.cpp" /> <ClCompile Include="lea.cpp" />
<ClCompile Include="lea-simd.cpp" /> <ClCompile Include="lea_simd.cpp" />
<ClCompile Include="luc.cpp" /> <ClCompile Include="luc.cpp" />
<ClCompile Include="mars.cpp" /> <ClCompile Include="mars.cpp" />
<ClCompile Include="marss.cpp" /> <ClCompile Include="marss.cpp" />
@ -286,7 +286,7 @@
<ClCompile Include="rdrand.cpp" /> <ClCompile Include="rdrand.cpp" />
<ClCompile Include="rdtables.cpp" /> <ClCompile Include="rdtables.cpp" />
<ClCompile Include="rijndael.cpp" /> <ClCompile Include="rijndael.cpp" />
<ClCompile Include="rijndael-simd.cpp" /> <ClCompile Include="rijndael_simd.cpp" />
<ClCompile Include="ripemd.cpp" /> <ClCompile Include="ripemd.cpp" />
<ClCompile Include="rng.cpp" /> <ClCompile Include="rng.cpp" />
<ClCompile Include="rsa.cpp" /> <ClCompile Include="rsa.cpp" />
@ -298,29 +298,29 @@
<ClCompile Include="seed.cpp" /> <ClCompile Include="seed.cpp" />
<ClCompile Include="serpent.cpp" /> <ClCompile Include="serpent.cpp" />
<ClCompile Include="sha.cpp" /> <ClCompile Include="sha.cpp" />
<ClCompile Include="sha-simd.cpp" /> <ClCompile Include="sha_simd.cpp" />
<ClCompile Include="sha3.cpp" /> <ClCompile Include="sha3.cpp" />
<ClCompile Include="shacal2.cpp" /> <ClCompile Include="shacal2.cpp" />
<ClCompile Include="shacal2-simd.cpp" /> <ClCompile Include="shacal2_simd.cpp" />
<ClCompile Include="shark.cpp" /> <ClCompile Include="shark.cpp" />
<ClCompile Include="sharkbox.cpp" /> <ClCompile Include="sharkbox.cpp" />
<ClCompile Include="simeck.cpp" /> <ClCompile Include="simeck.cpp" />
<ClCompile Include="simeck-simd.cpp" /> <ClCompile Include="simeck_simd.cpp" />
<ClCompile Include="simon.cpp" /> <ClCompile Include="simon.cpp" />
<ClCompile Include="simon64-simd.cpp" /> <ClCompile Include="simon64_simd.cpp" />
<ClCompile Include="simon128-simd.cpp" /> <ClCompile Include="simon128_simd.cpp" />
<ClCompile Include="simple.cpp" /> <ClCompile Include="simple.cpp" />
<ClCompile Include="skipjack.cpp" /> <ClCompile Include="skipjack.cpp" />
<ClCompile Include="sm3.cpp" /> <ClCompile Include="sm3.cpp" />
<ClCompile Include="sm4.cpp" /> <ClCompile Include="sm4.cpp" />
<ClCompile Include="sm4-simd.cpp" /> <ClCompile Include="sm4_simd.cpp" />
<ClCompile Include="sosemanuk.cpp" /> <ClCompile Include="sosemanuk.cpp" />
<ClCompile Include="speck.cpp" /> <ClCompile Include="speck.cpp" />
<ClCompile Include="speck64-simd.cpp" /> <ClCompile Include="speck64_simd.cpp" />
<ClCompile Include="speck128-simd.cpp" /> <ClCompile Include="speck128_simd.cpp" />
<ClCompile Include="square.cpp" /> <ClCompile Include="square.cpp" />
<ClCompile Include="squaretb.cpp" /> <ClCompile Include="squaretb.cpp" />
<ClCompile Include="sse-simd.cpp" /> <ClCompile Include="sse_simd.cpp" />
<ClCompile Include="strciphr.cpp" /> <ClCompile Include="strciphr.cpp" />
<ClCompile Include="tea.cpp" /> <ClCompile Include="tea.cpp" />
<ClCompile Include="tftables.cpp" /> <ClCompile Include="tftables.cpp" />
@ -377,7 +377,7 @@
<ItemGroup> <ItemGroup>
<ClInclude Include="3way.h" /> <ClInclude Include="3way.h" />
<ClInclude Include="adler32.h" /> <ClInclude Include="adler32.h" />
<ClInclude Include="adv-simd.h" /> <ClInclude Include="adv_simd.h" />
<ClInclude Include="aes.h" /> <ClInclude Include="aes.h" />
<ClInclude Include="algebra.h" /> <ClInclude Include="algebra.h" />
<ClInclude Include="algparam.h" /> <ClInclude Include="algparam.h" />

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// Original x86 CLMUL by Wei Dai. ARM and POWER8 // Original x86 CLMUL by Wei Dai. ARM and POWER8
// PMULL and VMULL by JW, UB and MR. // PMULL and VMULL by JW, UB and MR.
@ -39,7 +39,7 @@
#endif #endif
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE) #if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY #ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY
@ -186,7 +186,7 @@ using CryptoPP::VectorRotateLeft;
// algorithm on both big and little-endian systems, but it is // algorithm on both big and little-endian systems, but it is
// awful to try to follow the logic because it is so backwards. // awful to try to follow the logic because it is so backwards.
// Because functions like VMULL_NN are so backwards we can't put // 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. // user expects them to work.
inline uint64x2_p VMULL2LE(const uint64x2_p& val) inline uint64x2_p VMULL2LE(const uint64x2_p& val)

View File

@ -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 // This source file uses intrinsics and built-ins to gain access to
// SSSE3, ARM NEON and ARMv8a, and Power8 Altivec instructions. A separate // SSSE3, ARM NEON and ARMv8a, and Power8 Altivec instructions. A separate
@ -10,7 +10,7 @@
#include "lea.h" #include "lea.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.
@ -58,7 +58,7 @@
#undef CRYPTOPP_POWER8_AVAILABLE #undef CRYPTOPP_POWER8_AVAILABLE
#if defined(CRYPTOPP_POWER8_AVAILABLE) #if defined(CRYPTOPP_POWER8_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -242,7 +242,7 @@ protected:
void CipherResynchronize(byte *keystreamBuffer, const byte *iv, size_t length); void CipherResynchronize(byte *keystreamBuffer, const byte *iv, size_t length);
void SeekToIteration(lword iterationCount); void SeekToIteration(lword iterationCount);
// adv-simd.h increments the counter // adv_simd.h increments the counter
mutable SecByteBlock m_counterArray; mutable SecByteBlock m_counterArray;
}; };

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to ARMv7a and // This source file uses intrinsics to gain access to ARMv7a and

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to AltiVec, // This source file uses intrinsics to gain access to AltiVec,
@ -11,7 +11,7 @@
#include "stdcpp.h" #include "stdcpp.h"
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE) #if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY #ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY

View File

@ -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 /// \brief Support functions for PowerPC and vector operations
/// \details This header provides an agnostic interface into GCC and /// \details This header provides an agnostic interface into GCC and
/// IBM XL C/C++ compilers modulo their different built-in functions /// IBM XL C/C++ compilers modulo their different built-in functions

View File

@ -6,7 +6,7 @@
/* /*
July 2018: Added support for ARMv7 AES instructions via Cryptogams ASM. 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.
*/ */
/* /*

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// AES-NI code originally written by Wei Dai. // AES-NI code originally written by Wei Dai.
// //
@ -23,7 +23,7 @@
#include "pch.h" #include "pch.h"
#include "config.h" #include "config.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
#if (CRYPTOPP_AESNI_AVAILABLE) #if (CRYPTOPP_AESNI_AVAILABLE)
# include <smmintrin.h> # include <smmintrin.h>
@ -40,7 +40,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER8_AES_AVAILABLE) #if defined(CRYPTOPP_POWER8_AES_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY #ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY

View File

@ -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); extern void SHA512_HashMultipleBlocks_POWER8(word64 *state, const word64 *data, size_t length, ByteOrder order);
#endif #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 // cleared http://github.com/weidai11/cryptopp/issues/502
extern const word32 SHA256_K[64]; extern const word32 SHA256_K[64];
extern const word64 SHA512_K[80]; extern const word64 SHA512_K[80];

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to SHA-NI and // This source file uses intrinsics to gain access to SHA-NI and
@ -33,7 +33,7 @@
#endif #endif
#if CRYPTOPP_POWER8_SHA_AVAILABLE #if CRYPTOPP_POWER8_SHA_AVAILABLE
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
#ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY #ifdef CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY

View File

@ -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 // This source file uses intrinsics and built-ins to gain access to
// SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate // SSSE3, ARM NEON and ARMv8a, and Power7 Altivec instructions. A separate
@ -10,7 +10,7 @@
#include "simeck.h" #include "simeck.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.

View File

@ -10,7 +10,7 @@
#include "simon.h" #include "simon.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.
@ -43,7 +43,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER7_AVAILABLE) #if defined(CRYPTOPP_POWER7_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -10,7 +10,7 @@
#include "simon.h" #include "simon.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.
@ -47,7 +47,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER7_AVAILABLE) #if defined(CRYPTOPP_POWER7_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -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 // Markku-Juhani O. Saarinen and Jeffrey Walton
// //
// This source file uses intrinsics and built-ins to gain access to // This source file uses intrinsics and built-ins to gain access to
@ -15,7 +15,7 @@
#include "sm4.h" #include "sm4.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE. // Uncomment for benchmarking C++ against SSE.
// Do so in both simon.cpp and simon-simd.cpp. // Do so in both simon.cpp and simon-simd.cpp.

View File

@ -10,7 +10,7 @@
#include "speck.h" #include "speck.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both speck.cpp and speck-simd.cpp. // Do so in both speck.cpp and speck-simd.cpp.
@ -43,7 +43,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER7_AVAILABLE) #if defined(CRYPTOPP_POWER7_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -10,7 +10,7 @@
#include "speck.h" #include "speck.h"
#include "misc.h" #include "misc.h"
#include "adv-simd.h" #include "adv_simd.h"
// Uncomment for benchmarking C++ against SSE or NEON. // Uncomment for benchmarking C++ against SSE or NEON.
// Do so in both speck.cpp and speck-simd.cpp. // Do so in both speck.cpp and speck-simd.cpp.
@ -47,7 +47,7 @@
#endif #endif
#if defined(CRYPTOPP_POWER7_AVAILABLE) #if defined(CRYPTOPP_POWER7_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings

View File

@ -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. // Jeffrey Walton, Uri Blumenthal and Marcel Raad.
// //
// This source file uses intrinsics to gain access to SSE for CPU // This source file uses intrinsics to gain access to SSE for CPU

View File

@ -15,7 +15,7 @@
#include "zlib.h" #include "zlib.h"
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE) #if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# include "ppc-simd.h" # include "ppc_simd.h"
#endif #endif
#include <iostream> #include <iostream>