[openssl/openssl] f6484d: Enable ARMv8.2 accelerated SHA3 on compatible Appl...

sdlyyxy noreply at github.com
Fri Jul 21 00:20:25 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: f6484de23df5f04e1f9fa8418e942c45c1a65578
      https://github.com/openssl/openssl/commit/f6484de23df5f04e1f9fa8418e942c45c1a65578
  Author: sdlyyxy <sdlyyxy at icloud.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M crypto/arm_arch.h
    M providers/implementations/digests/sha3_prov.c

  Log Message:
  -----------
  Enable ARMv8.2 accelerated SHA3 on compatible Apple CPUs

The hardware-assisted ARMv8.2 implementation is already in keccak1600-armv8.pl.
It is not called because the author mentioned that it's not actually obvious
that it will provide performance improvements. The test on Apple M1 Firestorm
shows that the ARMv8.2 implementation could improve about 36% for large blocks.
So let's enable ARMv8.2 accelerated SHA3 on Apple CPU family.

Fixes #21380

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21398)


  Commit: 08e6eb216c9d65d502dc136a40e1c0adaefab759
      https://github.com/openssl/openssl/commit/08e6eb216c9d65d502dc136a40e1c0adaefab759
  Author: sdlyyxy <sdlyyxy at icloud.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M crypto/arm_arch.h
    M crypto/armcap.c
    M providers/implementations/digests/sha3_prov.c

  Log Message:
  -----------
  Move CPU detection to armcap.c

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21398)


  Commit: ba9472c1c121b13e48f7c198d3fe9871a86e664c
      https://github.com/openssl/openssl/commit/ba9472c1c121b13e48f7c198d3fe9871a86e664c
  Author: sdlyyxy <sdlyyxy at icloud.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M crypto/arm_arch.h
    M crypto/armcap.c
    M providers/implementations/digests/sha3_prov.c

  Log Message:
  -----------
  Update with `ARMV8_HAVE_SHA3_AND_WORTH_USING`

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21398)


Compare: https://github.com/openssl/openssl/compare/0c85bcbaeabe...ba9472c1c121


More information about the openssl-commits mailing list