From 4e3958a8ed3673d1e1f6df5f2b043418951626d5 Mon Sep 17 00:00:00 2001 From: deatil <2217957370@qq.com> Date: Thu, 5 Dec 2024 18:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cryptobin/elgamal/encryption.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptobin/elgamal/encryption.go b/cryptobin/elgamal/encryption.go index 2a73109d..f1b302cf 100644 --- a/cryptobin/elgamal/encryption.go +++ b/cryptobin/elgamal/encryption.go @@ -16,7 +16,7 @@ func (this ElGamal) Encrypt() ElGamal { return this.EncryptBytes() } - return this.EncryptBytes() + return this.EncryptASN1() } // 私钥解密 @@ -28,7 +28,7 @@ func (this ElGamal) Decrypt() ElGamal { return this.DecryptBytes() } - return this.DecryptBytes() + return this.EncryptASN1() } // ====================