]> git.ipfire.org Git - thirdparty/nettle.git/commit
Merge branch 's390x-sha1' into 'master'
authorNiels Möller <nisse@lysator.liu.se>
Sun, 31 Oct 2021 07:35:19 +0000 (07:35 +0000)
committerNiels Möller <nisse@lysator.liu.se>
Sun, 31 Oct 2021 07:35:19 +0000 (07:35 +0000)
commit5bce126f229b8130aa530520acb5a700a8f7d689
tree97465dd6d76b6a1b2802ad3058c61c9d0ba704f8
parent652bdc79d991d4755141624fc37f7270e38fdaf1
parent571d2cc2895d587001a14d951ba317e81e9e3bfd
Merge branch 's390x-sha1' into 'master'

[S390x] Optimize SHA3 permute using vector facility

This patch optimizes SHA3 permute function by taking advantage of supported vector facility. Vectorizing SHA3 permute fits more than applying SHA3 hardware-accelerator for s390x architecture in terms of implementing the actual permute procedure only rather than executing unneeded extra procedures which are handled by other functions in nettle library. Applying SHA3 hardware-accelerator in a previous patch yielded 12% performance boost while this patch has ~105% performance increase for SHA3 functions.
The optimized core follows the same optimization procedure that used in SHA3 permute implementation for x86_64 architecture.

| Algorithm | C (Mbyte/s) | Vectorized (Mbyte/s) |
| ------ | ------ | ------ |
| sha3_224 | 235.08 | 483.41 |
| sha3_256 | 226.15 | 460.68 |
| sha3_384 | 172.90 | 357.15 |
| sha3_512 | 120.46 | 243.96 |

See merge request nettle/nettle!36