public class KeyPairGeneratorSpi
extends java.security.KeyPairGenerator
KeyPairGenerator.SM9-ENC: the KGC's randomly-generated root of the scheme.
A user's key pair is not generated here - it is derived from the master
private key via
SM9EncUserKeyGenerator.generateUserKeyPair(byte[], byte),
the deterministic KGC operation (hid = 0x03) identity-based schemes call key extraction.
The signature master key generator, KeyPairGeneratorSpi.Sign, differs from this one only in the
lightweight generator it drives and the key classes it hands back, which is all it overrides.
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyPairGeneratorSpi.Sign
Generator for the SM9 signature master key pair (GM/T 0044.2), registered as
KeyPairGenerator.SM9-SIGN. |
| Constructor and Description |
|---|
KeyPairGeneratorSpi() |
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyPair |
generateKeyPair() |
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
void |
initialize(int strength,
java.security.SecureRandom random) |
public void initialize(int strength,
java.security.SecureRandom random)
initialize in class java.security.KeyPairGeneratorpublic void initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
initialize in class java.security.KeyPairGeneratorjava.security.InvalidAlgorithmParameterExceptionpublic java.security.KeyPair generateKeyPair()
generateKeyPair in class java.security.KeyPairGenerator