mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
4908787f21
This patch optimizes SM4 for ARM processor using ASIMD instruction It will improve performance if both of following conditions are met: 1) Input data equal to or more than 4 blocks 2) Cipher mode allows parallelism, including ECB,CTR,GCM or CBC decryption This patch implements SM4 SBOX lookup in vector registers, with the benefit of constant processing time over existing C implementation. It is only enabled for micro-architecture N1/V1. In the ideal scenario, performance can reach up to 2.7X When either of above two conditions is not met, e.g. single block input or CFB/OFB mode, CBC encryption, performance could drop about 50%. The assembly code has been reviewed internally by ARM engineer Fangming.Fang@arm.com Signed-off-by: Daniel Hu <Daniel.Hu@arm.com> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17951) |
||
---|---|---|
.. | ||
__DECC_INCLUDE_EPILOGUE.H | ||
__DECC_INCLUDE_PROLOGUE.H | ||
aes_platform.h | ||
aria.h | ||
asn1_dsa.h | ||
asn1.h | ||
asn1err.h | ||
async.h | ||
asyncerr.h | ||
bioerr.h | ||
bn_conf.h.in | ||
bn_dh.h | ||
bn_srp.h | ||
bn.h | ||
bnerr.h | ||
buffererr.h | ||
chacha.h | ||
cmll_platform.h | ||
cmperr.h | ||
cmserr.h | ||
comperr.h | ||
conferr.h | ||
context.h | ||
crmferr.h | ||
cryptlib.h | ||
cryptoerr.h | ||
cterr.h | ||
ctype.h | ||
decoder.h | ||
decodererr.h | ||
des_platform.h | ||
dh.h | ||
dherr.h | ||
dsa.h | ||
dsaerr.h | ||
dso_conf.h.in | ||
ec.h | ||
ecerr.h | ||
ecx.h | ||
encoder.h | ||
encodererr.h | ||
engine.h | ||
engineerr.h | ||
err.h | ||
ess.h | ||
esserr.h | ||
evp.h | ||
evperr.h | ||
httperr.h | ||
lhash.h | ||
md32_common.h | ||
modes.h | ||
objects.h | ||
objectserr.h | ||
ocsperr.h | ||
pem.h | ||
pemerr.h | ||
pkcs7.h | ||
pkcs7err.h | ||
pkcs12err.h | ||
poly1305.h | ||
ppc_arch.h | ||
punycode.h | ||
rand_pool.h | ||
rand.h | ||
randerr.h | ||
rsa.h | ||
rsaerr.h | ||
security_bits.h | ||
sha.h | ||
siphash.h | ||
siv.h | ||
sm2.h | ||
sm2err.h | ||
sm4_platform.h | ||
sm4.h | ||
sparc_arch.h | ||
sparse_array.h | ||
store.h | ||
storeerr.h | ||
tserr.h | ||
types.h | ||
uierr.h | ||
x509.h | ||
x509err.h | ||
x509v3err.h |