mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 20:00:34 +00:00
01e46aa474
Move m_aliasBlock into Rijndael::Base. m_aliasBlock is now an extra data member for Dec because the aliased table is only used for Enc when unaligned data access is in effect. However, the SecBlock is not allocated in the Dec class so there is no runtime penalty. Moving m_aliasBlock into Base also allowed us to remove the Enc::Enc() constructor, which always appeared as a wart in my eyes. Now m_aliasBlock is sized in UncheckedSetKey, so there's no need for the ctor initialization. Also see https://stackoverflow.com/q/46561818/608639 on Stack Overflow. The SO question had an unusual/unexpected interaction with CMake, so the removal of the Enc::Enc() ctor should help the problem.
464 lines
6.6 KiB
Plaintext
464 lines
6.6 KiB
Plaintext
3way.cpp
|
|
3way.h
|
|
adhoc.cpp.proto
|
|
adler32.cpp
|
|
adler32.h
|
|
aes.h
|
|
algebra.cpp
|
|
algebra.h
|
|
algparam.cpp
|
|
algparam.h
|
|
arc4.cpp
|
|
arc4.h
|
|
ariatab.cpp
|
|
aria.cpp
|
|
aria-simd.cpp
|
|
aria.h
|
|
argnames.h
|
|
asn.cpp
|
|
asn.h
|
|
authenc.cpp
|
|
authenc.h
|
|
base32.cpp
|
|
base32.h
|
|
base64.cpp
|
|
base64.h
|
|
basecode.cpp
|
|
basecode.h
|
|
bench.h
|
|
bds10.zip
|
|
bench1.cpp
|
|
bench2.cpp
|
|
bfinit.cpp
|
|
blake2.cpp
|
|
blake2-simd.cpp
|
|
blake2.h
|
|
blowfish.cpp
|
|
blowfish.h
|
|
blumshub.cpp
|
|
blumshub.h
|
|
camellia.cpp
|
|
camellia.h
|
|
cast.cpp
|
|
cast.h
|
|
casts.cpp
|
|
cbcmac.cpp
|
|
cbcmac.h
|
|
ccm.cpp
|
|
ccm.h
|
|
chacha.cpp
|
|
chacha.h
|
|
channels.cpp
|
|
channels.h
|
|
cmac.cpp
|
|
cmac.h
|
|
config.h
|
|
cpu.cpp
|
|
cpu.h
|
|
crc.cpp
|
|
crc-simd.cpp
|
|
crc.h
|
|
cryptdll.vcxproj
|
|
cryptdll.vcxproj.filters
|
|
cryptest.sh
|
|
cryptest.sln
|
|
cryptest.vcxproj
|
|
cryptest.vcxproj.user
|
|
cryptest.vcxproj.filters
|
|
cryptest.mapfile
|
|
cryptest.nmake
|
|
cryptlib.cpp
|
|
cryptlib.h
|
|
cryptlib.vcxproj
|
|
cryptlib.vcxproj.filters
|
|
cryptopp.rc
|
|
datatest.cpp
|
|
default.cpp
|
|
default.h
|
|
des.cpp
|
|
des.h
|
|
dessp.cpp
|
|
dh.cpp
|
|
dh.h
|
|
dh2.cpp
|
|
dh2.h
|
|
dll.cpp
|
|
dll.h
|
|
dlltest.cpp
|
|
dlltest.vcxproj
|
|
dlltest.vcxproj.filters
|
|
dmac.h
|
|
drbg.h
|
|
dsa.cpp
|
|
dsa.h
|
|
eax.cpp
|
|
eax.h
|
|
ec2n.cpp
|
|
ec2n.h
|
|
eccrypto.cpp
|
|
eccrypto.h
|
|
ecp.cpp
|
|
ecp.h
|
|
ecpoint.h
|
|
elgamal.cpp
|
|
elgamal.h
|
|
emsa2.cpp
|
|
emsa2.h
|
|
eprecomp.cpp
|
|
eprecomp.h
|
|
esign.cpp
|
|
esign.h
|
|
factory.h
|
|
fhmqv.cpp
|
|
fhmqv.h
|
|
files.cpp
|
|
files.h
|
|
filters.cpp
|
|
filters.h
|
|
fips140.cpp
|
|
fips140.h
|
|
fipsalgt.cpp
|
|
fipstest.cpp
|
|
fltrimpl.h
|
|
gcm-simd.cpp
|
|
gcm.cpp
|
|
gcm.h
|
|
gf256.cpp
|
|
gf256.h
|
|
gf2_32.cpp
|
|
gf2_32.h
|
|
gf2n.cpp
|
|
gf2n.h
|
|
gfpcrypt.cpp
|
|
gfpcrypt.h
|
|
gost.cpp
|
|
gost.h
|
|
gzip.cpp
|
|
gzip.h
|
|
hex.cpp
|
|
hex.h
|
|
hkdf.h
|
|
hmac.cpp
|
|
hmac.h
|
|
hmqv.cpp
|
|
hmqv.h
|
|
hrtimer.cpp
|
|
hrtimer.h
|
|
ida.cpp
|
|
ida.h
|
|
idea.cpp
|
|
idea.h
|
|
integer.cpp
|
|
integer.h
|
|
iterhash.cpp
|
|
iterhash.h
|
|
kalynatab.cpp
|
|
kalyna.cpp
|
|
kalyna.h
|
|
keccak.cpp
|
|
keccak.h
|
|
lubyrack.h
|
|
luc.cpp
|
|
luc.h
|
|
mars.cpp
|
|
mars.h
|
|
marss.cpp
|
|
md2.cpp
|
|
md2.h
|
|
md4.cpp
|
|
md4.h
|
|
md5.cpp
|
|
md5.h
|
|
mdc.h
|
|
mersenne.h
|
|
misc.cpp
|
|
misc.h
|
|
modarith.h
|
|
modes.cpp
|
|
modes.h
|
|
modexppc.h
|
|
mqueue.cpp
|
|
mqueue.h
|
|
mqv.cpp
|
|
mqv.h
|
|
nbtheory.cpp
|
|
nbtheory.h
|
|
neon-simd.cpp
|
|
network.cpp
|
|
network.h
|
|
nr.h
|
|
oaep.cpp
|
|
oaep.h
|
|
oids.h
|
|
osrng.cpp
|
|
osrng.h
|
|
ossig.h
|
|
padlkrng.cpp
|
|
padlkrng.h
|
|
panama.cpp
|
|
panama.h
|
|
pch.cpp
|
|
pch.h
|
|
pkcspad.cpp
|
|
pkcspad.h
|
|
poly1305.cpp
|
|
poly1305.h
|
|
polynomi.cpp
|
|
polynomi.h
|
|
ppc-crypto.h
|
|
ppc-simd.cpp
|
|
pssr.cpp
|
|
pssr.h
|
|
pubkey.cpp
|
|
pubkey.h
|
|
pwdbased.h
|
|
queue.cpp
|
|
queue.h
|
|
rabin.cpp
|
|
rabin.h
|
|
randpool.cpp
|
|
randpool.h
|
|
rc2.cpp
|
|
rc2.h
|
|
rc5.cpp
|
|
rc5.h
|
|
rc6.cpp
|
|
rc6.h
|
|
rdrand-masm.cmd
|
|
rdrand-nasm.sh
|
|
rdrand.s
|
|
rdrand.asm
|
|
rdrand.cpp
|
|
rdrand.h
|
|
rdtables.cpp
|
|
regtest1.cpp
|
|
regtest2.cpp
|
|
regtest3.cpp
|
|
resource.h
|
|
rijndael.cpp
|
|
rijndael-simd.cpp
|
|
rijndael.h
|
|
ripemd.cpp
|
|
ripemd.h
|
|
rng.cpp
|
|
rng.h
|
|
rsa.cpp
|
|
rsa.h
|
|
rw.cpp
|
|
rw.h
|
|
safer.cpp
|
|
safer.h
|
|
salsa.cpp
|
|
salsa.h
|
|
seal.cpp
|
|
seal.h
|
|
secblock.h
|
|
seckey.h
|
|
seed.cpp
|
|
seed.h
|
|
serpent.cpp
|
|
serpent.h
|
|
serpentp.h
|
|
sha.cpp
|
|
sha-simd.cpp
|
|
sha.h
|
|
sha3.cpp
|
|
sha3.h
|
|
shacal2.cpp
|
|
shacal2-simd.cpp
|
|
shacal2.h
|
|
shark.cpp
|
|
shark.h
|
|
sharkbox.cpp
|
|
simple.cpp
|
|
simple.h
|
|
siphash.h
|
|
skipjack.cpp
|
|
skipjack.h
|
|
smartptr.h
|
|
socketft.cpp
|
|
socketft.h
|
|
sosemanuk.cpp
|
|
sosemanuk.h
|
|
square.cpp
|
|
square.h
|
|
squaretb.cpp
|
|
stdcpp.h
|
|
strciphr.cpp
|
|
strciphr.h
|
|
tea.cpp
|
|
tea.h
|
|
test.cpp
|
|
trap.h
|
|
tftables.cpp
|
|
threefish.cpp
|
|
threefish.h
|
|
tiger.cpp
|
|
tiger.h
|
|
tigertab.cpp
|
|
trdlocal.cpp
|
|
trdlocal.h
|
|
trunhash.h
|
|
ttmac.cpp
|
|
ttmac.h
|
|
twofish.cpp
|
|
twofish.h
|
|
validat0.cpp
|
|
validat1.cpp
|
|
validat2.cpp
|
|
validat3.cpp
|
|
validate.h
|
|
vmac.cpp
|
|
vmac.h
|
|
vs2005.zip
|
|
wait.cpp
|
|
wait.h
|
|
wake.cpp
|
|
wake.h
|
|
whrlpool.cpp
|
|
whrlpool.h
|
|
winpipes.cpp
|
|
winpipes.h
|
|
words.h
|
|
x64dll.asm
|
|
x64masm.asm
|
|
xtr.cpp
|
|
xtr.h
|
|
xtrcrypt.cpp
|
|
xtrcrypt.h
|
|
zdeflate.cpp
|
|
zdeflate.h
|
|
zinflate.cpp
|
|
zinflate.h
|
|
zlib.cpp
|
|
zlib.h
|
|
Doxyfile
|
|
GNUmakefile
|
|
GNUmakefile-cross
|
|
License.txt
|
|
Readme.txt
|
|
Install.txt
|
|
Filelist.txt
|
|
TestData/3desval.dat
|
|
TestData/3wayval.dat
|
|
TestData/aria.dat
|
|
TestData/camellia.dat
|
|
TestData/cast128v.dat
|
|
TestData/cast256v.dat
|
|
TestData/descert.dat
|
|
TestData/dh1024.dat
|
|
TestData/dh2048.dat
|
|
TestData/dlie1024.dat
|
|
TestData/dlie2048.dat
|
|
TestData/dsa1024.dat
|
|
TestData/dsa1024b.dat
|
|
TestData/dsa512.dat
|
|
TestData/elgc1024.dat
|
|
TestData/esig1023.dat
|
|
TestData/esig1536.dat
|
|
TestData/esig2046.dat
|
|
TestData/fhmqv160.dat
|
|
TestData/fhmqv256.dat
|
|
TestData/fhmqv384.dat
|
|
TestData/fhmqv512.dat
|
|
TestData/gostval.dat
|
|
TestData/hmqv160.dat
|
|
TestData/hmqv256.dat
|
|
TestData/hmqv384.dat
|
|
TestData/hmqv512.dat
|
|
TestData/ideaval.dat
|
|
TestData/luc1024.dat
|
|
TestData/luc2048.dat
|
|
TestData/lucc1024.dat
|
|
TestData/lucc512.dat
|
|
TestData/lucd1024.dat
|
|
TestData/lucd512.dat
|
|
TestData/lucs1024.dat
|
|
TestData/lucs512.dat
|
|
TestData/marsval.dat
|
|
TestData/mqv1024.dat
|
|
TestData/mqv2048.dat
|
|
TestData/nr1024.dat
|
|
TestData/nr2048.dat
|
|
TestData/rabi1024.dat
|
|
TestData/rabi2048.dat
|
|
TestData/rc2val.dat
|
|
TestData/rc5val.dat
|
|
TestData/rc6val.dat
|
|
TestData/rijndael.dat
|
|
TestData/rsa1024.dat
|
|
TestData/rsa2048.dat
|
|
TestData/rsa400pb.dat
|
|
TestData/rsa400pv.dat
|
|
TestData/rsa512a.dat
|
|
TestData/rsa2048a.dat
|
|
TestData/rw1024.dat
|
|
TestData/rw2048.dat
|
|
TestData/saferval.dat
|
|
TestData/serpentv.dat
|
|
TestData/shacal2v.dat
|
|
TestData/sharkval.dat
|
|
TestData/skipjack.dat
|
|
TestData/squareva.dat
|
|
TestData/twofishv.dat
|
|
TestData/usage.dat
|
|
TestData/xtrdh171.dat
|
|
TestData/xtrdh342.dat
|
|
TestVectors/Readme.txt
|
|
TestVectors/aes.txt
|
|
TestVectors/all.txt
|
|
TestVectors/aria.txt
|
|
TestVectors/blake2.txt
|
|
TestVectors/blake2b.txt
|
|
TestVectors/blake2s.txt
|
|
TestVectors/aria.txt
|
|
TestVectors/camellia.txt
|
|
TestVectors/ccm.txt
|
|
TestVectors/chacha.txt
|
|
TestVectors/cmac.txt
|
|
TestVectors/dlies.txt
|
|
TestVectors/dsa.txt
|
|
TestVectors/dsa_1363.txt
|
|
TestVectors/eax.txt
|
|
TestVectors/esign.txt
|
|
TestVectors/gcm.txt
|
|
TestVectors/hkdf.txt
|
|
TestVectors/hmac.txt
|
|
TestVectors/kalyna.txt
|
|
TestVectors/keccak.txt
|
|
TestVectors/mars.txt
|
|
TestVectors/nr.txt
|
|
TestVectors/panama.txt
|
|
TestVectors/rsa_oaep.txt
|
|
TestVectors/rsa_pkcs1_1_5.txt
|
|
TestVectors/rsa_pss.txt
|
|
TestVectors/dsa_rfc6979.txt
|
|
TestVectors/rw.txt
|
|
TestVectors/salsa.txt
|
|
TestVectors/seal.txt
|
|
TestVectors/seed.txt
|
|
TestVectors/sha.txt
|
|
TestVectors/sha2.txt
|
|
TestVectors/sha3.txt
|
|
TestVectors/sha1_fips_180.txt
|
|
TestVectors/sha1_160_fips_180.txt
|
|
TestVectors/sha2_fips_180.txt
|
|
TestVectors/sha2_224_fips_180.txt
|
|
TestVectors/sha2_256_fips_180.txt
|
|
TestVectors/sha2_384_fips_180.txt
|
|
TestVectors/sha2_512_fips_180.txt
|
|
TestVectors/sha3_fips_202.txt
|
|
TestVectors/sha3_224_fips_202.txt
|
|
TestVectors/sha3_256_fips_202.txt
|
|
TestVectors/sha3_384_fips_202.txt
|
|
TestVectors/sha3_512_fips_202.txt
|
|
TestVectors/shacal2.txt
|
|
TestVectors/siphash.txt
|
|
TestVectors/sosemanuk.txt
|
|
TestVectors/tea.txt
|
|
TestVectors/threefish.txt
|
|
TestVectors/ttmac.txt
|
|
TestVectors/vmac.txt
|
|
TestVectors/wake.txt
|
|
TestVectors/whrlpool.txt
|