]> Cypherpunks repositories - gostls13.git/commit
crypto/ecdsa: implement ecdsa on s390x for P256/P384/P521 using KDSA instruction
authorbill_ofarrell <billo@ca.ibm.com>
Thu, 16 May 2019 16:45:52 +0000 (12:45 -0400)
committerMichael Munday <mike.munday@ibm.com>
Fri, 24 May 2019 08:16:32 +0000 (08:16 +0000)
commit7e5bc4775f12a5612a2f0bea1322af4bb8b24892
treeb2c4c11dd5057d3276d57c1051f1fa1e98b510b1
parentb84e0bc61a1742309f57deace17e5b8748c33fd7
crypto/ecdsa: implement ecdsa on s390x for P256/P384/P521 using KDSA instruction

Utilize KDSA when available. This guarantees constant time operation on all three curves mentioned,
and is faster than conventional assembly. The IBM Z model(s) that support KDSA as used in this CL
are not yet publicly available, and so we are unable to release performance data at this time.

Change-Id: I85360dcf90fe42d2bf32afe3f638e282de10a518
Reviewed-on: https://go-review.googlesource.com/c/go/+/174437
Run-TryBot: Michael Munday <mike.munday@ibm.com>
Reviewed-by: Michael Munday <mike.munday@ibm.com>
src/crypto/ecdsa/ecdsa.go
src/crypto/ecdsa/ecdsa_noasm.go [new file with mode: 0644]
src/crypto/ecdsa/ecdsa_s390x.go [new file with mode: 0644]
src/crypto/ecdsa/ecdsa_s390x.s [new file with mode: 0644]
src/crypto/ecdsa/ecdsa_s390x_test.go [new file with mode: 0644]