From 675949b56e002bd4620da506921a8b2bd8c11754 Mon Sep 17 00:00:00 2001 From: FishGoddess <1149062639@qq.com> Date: Wed, 22 May 2024 02:12:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E8=A7=84=E6=A8=A1=E9=87=8D=E6=9E=84?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _examples/rsa.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/_examples/rsa.go b/_examples/rsa.go index 8a2f067..f97b4f7 100644 --- a/_examples/rsa.go +++ b/_examples/rsa.go @@ -39,12 +39,8 @@ func main() { fmt.Printf("Decrypted: %s\n", decrypted) - msg = hash.SHA256(msg) - if err != nil { - panic(err) - } - // Use private key to sign msg. + msg = hash.SHA256(msg) signed, err := privateKey.SignPKCS1v15(msg) if err != nil { panic(err)