Debian Codegraph @

libgo/go/crypto/ecdsa/ecdsa_noasm.go

raw
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
7 package ecdsa
8
9 import (
10 "crypto/cipher"
11 "crypto/elliptic"
12 "math/big"
13 )
14
15 func sign(priv *PrivateKey, csprng *cipher.StreamReader, c elliptic.Curve, hash []byte) (r, s *big.Int, err error) {
16 return signGeneric(priv, csprng, c, hash)
17 }
18
19 func verify(pub *PublicKey, c elliptic.Curve, hash []byte, r, s *big.Int) bool {
20 return verifyGeneric(pub, c, hash, r, s)
21 }