summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2021-05-17 18:00:23 -0700
committergVisor bot <gvisor-bot@google.com>2021-05-17 18:02:15 -0700
commit3c24d345d09493bc65bcecc2b99997524a1fe6c1 (patch)
tree7a5a6d08e559d361bdb429087e86f7373f784d23 /pkg
parentff9e7af24d138800f6227ba98a73a0b2bc5cf412 (diff)
Automated rollback of changelist 373417636
PiperOrigin-RevId: 374319456
Diffstat (limited to 'pkg')
-rw-r--r--pkg/crypto/crypto_stdlib.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/crypto/crypto_stdlib.go b/pkg/crypto/crypto_stdlib.go
index 514592b08..74a55a123 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, error) {
- return ecdsa.Verify(pub, hash, r, s), nil
+func EcdsaVerify(pub *ecdsa.PublicKey, hash []byte, r, s *big.Int) bool {
+ return ecdsa.Verify(pub, hash, r, s)
}
// SumSha384 returns the SHA384 checksum of the data.
-func SumSha384(data []byte) ([sha512.Size384]byte, error) {
- return sha512.Sum384(data), nil
+func SumSha384(data []byte) (sum384 [sha512.Size384]byte) {
+ return sha512.Sum384(data)
}