diff options
| author | 2020-10-15 17:24:41 +0800 | |
|---|---|---|
| committer | 2020-10-30 17:35:02 +1100 | |
| commit | 1bc608b4655b8b1491fb100f4cf4f15ae64a8698 (patch) | |
| tree | f9886c09b765eff3819e8919ae67ea4457ae50d6 /lib/crypto/sha256.c | |
| parent | crypto: sa2ul - Reduce stack usage (diff) | |
| download | wireguard-linux-1bc608b4655b8b1491fb100f4cf4f15ae64a8698.tar.xz wireguard-linux-1bc608b4655b8b1491fb100f4cf4f15ae64a8698.zip | |
crypto: sm2 - remove unnecessary reset operations
This is an algorithm optimization. The reset operation when
setting the public key is repeated and redundant, so remove it.
At the same time, `sm2_ecc_os2ec()` is optimized to make the
function more simpler and more in line with the Linux code style.
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto/sha256.c')
0 files changed, 0 insertions, 0 deletions
