Re: Deterministic (EC)DSA

2024-04-18 Thread Niels Möller
Daiki Ueno writes: > The attached patch adds support for the deterministic DSA and ECDSA, as > defined in RFC 6979, which enables us to use the signing function > without randomness. Thanks, I've had a first read, and added some comments on your MR

[PATCH v2 1/2] powerpc64: Add optimized assembly for sha256-compress-n

2024-04-18 Thread Eric Richter
This patch introduces an optimized powerpc64 assembly implementation for sha256-compress-n. This takes advantage of the vshasigma instruction, as well as unrolling loops to best take advantage of running instructions in parallel. The following data was captured on a POWER 10 LPAR @ ~3.896GHz

[PATCH v2 2/2] powerpc64: Add optimized assembly for sha512-compress

2024-04-18 Thread Eric Richter
This patch introduces an optimized powerpc64 assembly implementation for sha512-compress, derived from the implementation for sha256-compress-n. The following data was captured on a POWER 10 LPAR @ ~3.896GHz Current C implementation: Algorithm mode Mbyte/s sha512

[PATCH v2 0/2] Add optimized powerpc64 assembly for SHA2

2024-04-18 Thread Eric Richter
I've updated this set to use the proper conventions for register names, and also adjusted the IV macro according to the suggestions provided. I can also confirm that I've gotten a working build environment based on the approach the GitLab CI configuration, and that the ppc64 big-endian build does