From c9a7dab419aa8c68fd8cdde7dc0d16ac9e20595a Mon Sep 17 00:00:00 2001 From: tsingbx Date: Wed, 31 Jul 2024 14:56:03 +0800 Subject: [PATCH] delete sum --- internal/lib/crypto/sha256/sha256.go | 5 ----- internal/lib/crypto/sha512/sha512.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/internal/lib/crypto/sha256/sha256.go b/internal/lib/crypto/sha256/sha256.go index d55b3d97..480325be 100644 --- a/internal/lib/crypto/sha256/sha256.go +++ b/internal/lib/crypto/sha256/sha256.go @@ -66,8 +66,3 @@ func Sum256(data []byte) (ret [Size]byte) { openssl.SHA256Bytes(data, &ret[0]) return } - -func Sum(data []byte) (ret [Size]byte) { - openssl.SHA256Bytes(data, &ret[0]) - return -} diff --git a/internal/lib/crypto/sha512/sha512.go b/internal/lib/crypto/sha512/sha512.go index 53ff4700..0cdf6ec9 100644 --- a/internal/lib/crypto/sha512/sha512.go +++ b/internal/lib/crypto/sha512/sha512.go @@ -72,11 +72,6 @@ func Sum512(data []byte) (ret [Size]byte) { return } -func Sum(data []byte) (ret [Size]byte) { - openssl.SHA512Bytes(data, &ret[0]) - return -} - func New512_224() hash.Hash { panic("todo: New512_224") }