diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-05-12 11:47:21 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-05-12 11:49:40 -0700 |
commit | 2f6e85ddec08e6d44c07eaf2b63a9887cb666d84 (patch) | |
tree | 559b04dbb4b24b1260459bb799e2427fb1929603 /pkg/crypto/crypto_stdlib.go | |
parent | 8f6bfe257e162c14faa25ee00dc249859994c2c8 (diff) |
Internal change.
PiperOrigin-RevId: 373417636
Diffstat (limited to 'pkg/crypto/crypto_stdlib.go')
-rw-r--r-- | pkg/crypto/crypto_stdlib.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/crypto/crypto_stdlib.go b/pkg/crypto/crypto_stdlib.go index 74a55a123..514592b08 100644 --- a/pkg/crypto/crypto_stdlib.go +++ b/pkg/crypto/crypto_stdlib.go @@ -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 } |