From 7519769bdd81b70c08a4ca06087073a027500a91 Mon Sep 17 00:00:00 2001 From: MoonFruit Date: Tue, 27 Aug 2024 15:44:30 +0800 Subject: [PATCH] open GMSignatureSpi constructor to subclass --- .../jcajce/provider/asymmetric/ec/GMSignatureSpi.java | 2 +- .../jcajce/provider/asymmetric/ec/GMSignatureSpi.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java b/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java index 4b8c8e824c..9168773998 100644 --- a/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java +++ b/prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java @@ -29,7 +29,7 @@ public class GMSignatureSpi private final SM2Signer signer; - GMSignatureSpi(SM2Signer signer) + protected GMSignatureSpi(SM2Signer signer) { this.signer = signer; } diff --git a/prov/src/main/jdk1.1/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java b/prov/src/main/jdk1.1/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java index de4b6c6b04..4b514109db 100644 --- a/prov/src/main/jdk1.1/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java +++ b/prov/src/main/jdk1.1/org/bouncycastle/jcajce/provider/asymmetric/ec/GMSignatureSpi.java @@ -31,7 +31,7 @@ public class GMSignatureSpi private SM2Signer signer; - GMSignatureSpi(SM2Signer signer) + protected GMSignatureSpi(SM2Signer signer) { super("SM3withSM2"); this.signer = signer;