diff options
| author | bill_ofarrell <billo@ca.ibm.com> | 2019-04-30 17:15:39 -0400 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-30 23:31:26 +0000 |
| commit | ba978f5fff69dcdc6ba651be2d2b53a96e939924 (patch) | |
| tree | 6556a07e270661fcda703fef3c3f9776aaefa6ab /src/internal/cpu/cpu.go | |
| parent | 43b9fcf6fe9feb0ec67a7ddb01e5b542542b47c8 (diff) | |
| download | go-ba978f5fff69dcdc6ba651be2d2b53a96e939924.tar.xz | |
internal/cpu: add detection for the new ECDSA and EDDSA capabilities on s390x
This CL will check for the Message-Security-Assist Extension 9 facility
which enables the KDSA instruction.
Change-Id: I659aac09726e0999ec652ef1f5983072c8131a48
Reviewed-on: https://go-review.googlesource.com/c/go/+/174529
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/internal/cpu/cpu.go')
| -rw-r--r-- | src/internal/cpu/cpu.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/cpu/cpu.go b/src/internal/cpu/cpu.go index 3029bcb0c2..76fc878abe 100644 --- a/src/internal/cpu/cpu.go +++ b/src/internal/cpu/cpu.go @@ -128,6 +128,9 @@ type s390x struct { HasSHA3 bool // K{I,L}MD-SHA3-{224,256,384,512} and K{I,L}MD-SHAKE-{128,256} functions HasVX bool // vector facility. Note: the runtime sets this when it processes auxv records. HasVXE bool // vector-enhancements facility 1 + HasKDSA bool // elliptic curve functions + HasECDSA bool // NIST curves + HasEDDSA bool // Edwards curves _ CacheLinePad } |
