diff options
| author | davy <davy.wybiral@gmail.com> | 2019-07-03 16:55:03 -0500 |
|---|---|---|
| committer | davy <davy.wybiral@gmail.com> | 2019-07-03 16:55:03 -0500 |
| commit | 442e3c6dcf35cc1ca508e617f94198637e761bc8 (patch) | |
| tree | 8d6b6210ce98385180766fa14984e2c47f779050 /vendor/golang.org/x/crypto/sha3/sha3_s390x.s | |
| parent | 53bc0c19fadcfb7ae9a608ed1f9f6268d1670368 (diff) | |
dep ensurev0.1.0
Diffstat (limited to 'vendor/golang.org/x/crypto/sha3/sha3_s390x.s')
| -rw-r--r-- | vendor/golang.org/x/crypto/sha3/sha3_s390x.s | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/golang.org/x/crypto/sha3/sha3_s390x.s b/vendor/golang.org/x/crypto/sha3/sha3_s390x.s new file mode 100644 index 0000000..b2ef69f --- /dev/null +++ b/vendor/golang.org/x/crypto/sha3/sha3_s390x.s @@ -0,0 +1,33 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//+build !gccgo,!appengine + +#include "textflag.h" + +// func kimd(function code, chain *[200]byte, src []byte) +TEXT ·kimd(SB), NOFRAME|NOSPLIT, $0-40 + MOVD function+0(FP), R0 + MOVD chain+8(FP), R1 + LMG src+16(FP), R2, R3 // R2=base, R3=len + +continue: + WORD $0xB93E0002 // KIMD --, R2 + BVS continue // continue if interrupted + MOVD $0, R0 // reset R0 for pre-go1.8 compilers + RET + +// func klmd(function code, chain *[200]byte, dst, src []byte) +TEXT ·klmd(SB), NOFRAME|NOSPLIT, $0-64 + // TODO: SHAKE support + MOVD function+0(FP), R0 + MOVD chain+8(FP), R1 + LMG dst+16(FP), R2, R3 // R2=base, R3=len + LMG src+40(FP), R4, R5 // R4=base, R5=len + +continue: + WORD $0xB93F0024 // KLMD R2, R4 + BVS continue // continue if interrupted + MOVD $0, R0 // reset R0 for pre-go1.8 compilers + RET |
