Source file src/crypto/internal/fips140/ecdsa/ecdsa_noasm.go

     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 || purego
     6  
     7  package ecdsa
     8  
     9  func sign[P Point[P]](c *Curve[P], priv *PrivateKey, drbg *hmacDRBG, hash []byte) (*Signature, error) {
    10  	return signGeneric(c, priv, drbg, hash)
    11  }
    12  
    13  func verify[P Point[P]](c *Curve[P], pub *PublicKey, hash []byte, sig *Signature) error {
    14  	return verifyGeneric(c, pub, hash, sig)
    15  }
    16  

View as plain text