diff options
| author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2022-10-27 14:54:58 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-11-04 17:34:31 +0800 |
| commit | ce41fefd2443c25166458f24621b53a28fff989f (patch) | |
| tree | 5c9a1c6cf639327f523b7617e183ecfa7f5c88e4 /tools/perf/scripts/python/flamegraph.py | |
| parent | 3c3836378dd578a0d510420c0f67818e8dc49f0e (diff) | |
crypto: arm64/sm4 - refactor and simplify CE implementation
This patch does not add new features, but only refactors and simplifies the
implementation of the Crypto Extension acceleration of the SM4 algorithm:
Extract the macro optimized by SM4 Crypto Extension for reuse in the
subsequent optimization of CCM/GCM modes.
Encryption in CBC and CFB modes processes four blocks at a time instead of
one, allowing the ld1 instruction to load 64 bytes of data at a time, which
will reduces unnecessary memory accesses.
CBC/CFB/CTR makes full use of free registers to reduce redundant memory
accesses, and rearranges some instructions to improve out-of-order execution
capabilities.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
