Internal change.

PiperOrigin-RevId: 373417636
This commit is contained in:
gVisor bot
2021-05-12 11:49:40 -07:00
parent 8f6bfe257e
commit 2f6e85ddec
+4 -4
View File
@@ -22,11 +22,11 @@ import (
// EcdsaVerify verifies the signature in r, s of hash using ECDSA and the
// public key, pub. Its return value records whether the signature is valid.
func EcdsaVerify(pub *ecdsa.PublicKey, hash []byte, r, s *big.Int) bool {
return ecdsa.Verify(pub, hash, r, s)
func EcdsaVerify(pub *ecdsa.PublicKey, hash []byte, r, s *big.Int) (bool, error) {
return ecdsa.Verify(pub, hash, r, s), nil
}
// SumSha384 returns the SHA384 checksum of the data.
func SumSha384(data []byte) (sum384 [sha512.Size384]byte) {
return sha512.Sum384(data)
func SumSha384(data []byte) ([sha512.Size384]byte, error) {
return sha512.Sum384(data), nil
}