1 // Copyright 2020 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build !s390x 6 // +build !s390x 7 8 package ecdsa 9 10 import ( 11 "crypto/cipher" 12 "crypto/elliptic" 13 "math/big" 14 ) 15 16 func sign(priv *PrivateKey, csprng *cipher.StreamReader, c elliptic.Curve, hash []byte) (r, s *big.Int, err error) { 17 return signGeneric(priv, csprng, c, hash) 18 } 19 20 func verify(pub *PublicKey, c elliptic.Curve, hash []byte, r, s *big.Int) bool { 21 return verifyGeneric(pub, c, hash, r, s) 22 } 23