[openssl/openssl] 704e80: optimize ossl_sm4_set_key speed

zzl-360 noreply at github.com
Thu Oct 13 12:22:53 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 704e8090b4a789f52af07de9a3ebbe11db8e19f8
      https://github.com/openssl/openssl/commit/704e8090b4a789f52af07de9a3ebbe11db8e19f8
  Author: zhangzhilei <zhangzhilei at 360.cn>
  Date:   2022-10-13 (Thu, 13 Oct 2022)

  Changed paths:
    M crypto/sm4/sm4.c

  Log Message:
  -----------
  optimize ossl_sm4_set_key speed

this optimization comes from libgcrypt, increse about 48% speed

Benchmark on my AMD Ryzen Threadripper 3990X

before:
Did 5752000 SM4 setup operations in 1000151us (5751131.6 ops/sec)
after:
Did 8506000 SM4 setup operations in 1000023us (8505804.4 ops/sec)

Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19270)




More information about the openssl-commits mailing list