Enable AES and SHA3 optimisations on Apple Silicon M3-based macOS systems
authorTom Cosgrove <tom.cosgrove@arm.com>
Wed, 8 Nov 2023 22:45:55 +0000 (22:45 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Nov 2023 07:10:54 +0000 (08:10 +0100)
commit7602bf871564df86005f6c4c989f1d7cc2393878
treeee760ab513d15a7fa9c2e648a827e3fcae26e89e
parentf63e1b48ac893dd6110452e70ed08f191547cd89
Enable AES and SHA3 optimisations on Apple Silicon M3-based macOS systems

AES gets a performance enhancement of 19-36%, similar to the M1 and M2.

SHA3 gets an improvement of 4-7% on buffers 256 bytes or larger.

Tested on an M3 Pro, but the CPU cores are the same on M3 and M3 Max.

Change-Id: I2bf40bbde824823bb8cf2efd1bd945da9f23a703

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22685)
crypto/armcap.c