Class SM9SigMasterKeyPairGenerator
java.lang.Object
org.bouncycastle.crypto.generators.SM9SigMasterKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class SM9SigMasterKeyPairGenerator
extends Object
implements AsymmetricCipherKeyPairGenerator
Generates an SM9 signature master key pair (ks, P_pub-s = [ks]P2), where the
master private key ks is chosen uniformly from [1, N-1] (GM/T 0044.2-2016, 5.3).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.voidinit(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
SM9SigMasterKeyPairGenerator
public SM9SigMasterKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGeneratorintialise the key pair generator.- Specified by:
initin interfaceAsymmetricCipherKeyPairGenerator- Parameters:
param- the parameters the key pair is to be initialised with.
-
generateKeyPair
Description copied from interface:AsymmetricCipherKeyPairGeneratorreturn an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPairin interfaceAsymmetricCipherKeyPairGenerator- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-