From f00794ed35e64e23579cd2e18cff96f433d2f352 Mon Sep 17 00:00:00 2001 From: deatil <2217957370@qq.com> Date: Tue, 20 Aug 2024 11:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elgamal/key_pkcs8.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elgamal/key_pkcs8.go b/elgamal/key_pkcs8.go index d4ceb2ca..4f7aea43 100644 --- a/elgamal/key_pkcs8.go +++ b/elgamal/key_pkcs8.go @@ -13,7 +13,9 @@ import ( var ( // elgamal 公钥 oid - oidPublicKeyEIGamal = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 3029, 1, 2, 1} + oidPublicKeyEIGamal = asn1.ObjectIdentifier{1, 3, 14, 7, 2, 1, 1} + // for EC-EIGamal + // oidPublicKeyEIGamal = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 3029, 1, 2, 1} ) // elgamal Parameters