org.bouncycastle.jcajce.provider.asymmetric.slhdsa
Class SLHDSAKeyPairGeneratorSpi
java.lang.Object
java.security.KeyPairGeneratorSpi
java.security.KeyPairGenerator
org.bouncycastle.jcajce.provider.asymmetric.slhdsa.SLHDSAKeyPairGeneratorSpi
- Direct Known Subclasses:
- SLHDSAKeyPairGeneratorSpi.Hash, SLHDSAKeyPairGeneratorSpi.HashSha2_128f, SLHDSAKeyPairGeneratorSpi.HashSha2_128s, SLHDSAKeyPairGeneratorSpi.HashSha2_192f, SLHDSAKeyPairGeneratorSpi.HashSha2_192s, SLHDSAKeyPairGeneratorSpi.HashSha2_256f, SLHDSAKeyPairGeneratorSpi.HashSha2_256s, SLHDSAKeyPairGeneratorSpi.HashShake_128f, SLHDSAKeyPairGeneratorSpi.HashShake_128s, SLHDSAKeyPairGeneratorSpi.HashShake_192f, SLHDSAKeyPairGeneratorSpi.HashShake_192s, SLHDSAKeyPairGeneratorSpi.HashShake_256f, SLHDSAKeyPairGeneratorSpi.HashShake_256s, SLHDSAKeyPairGeneratorSpi.Pure, SLHDSAKeyPairGeneratorSpi.Sha2_128f, SLHDSAKeyPairGeneratorSpi.Sha2_128s, SLHDSAKeyPairGeneratorSpi.Sha2_192f, SLHDSAKeyPairGeneratorSpi.Sha2_192s, SLHDSAKeyPairGeneratorSpi.Sha2_256f, SLHDSAKeyPairGeneratorSpi.Sha2_256s, SLHDSAKeyPairGeneratorSpi.Shake_128f, SLHDSAKeyPairGeneratorSpi.Shake_128s, SLHDSAKeyPairGeneratorSpi.Shake_192f, SLHDSAKeyPairGeneratorSpi.Shake_192s, SLHDSAKeyPairGeneratorSpi.Shake_256f, SLHDSAKeyPairGeneratorSpi.Shake_256s
- public class SLHDSAKeyPairGeneratorSpi
- extends java.security.KeyPairGenerator
SLH-DSA (FIPS 205) key pair generation. A generator obtained as "SLH-DSA" and not initialised
produces SLH-DSA-SHA2-128F keys ("HASH-SLH-DSA" SLH-DSA-SHA2-128F-WITH-SHA256). An initialisation
that gives no SecureRandom, including this default and a generator obtained under a parameter set
name, draws the key from the
default SecureRandom set on CryptoServicesRegistrar, if one has been set, and otherwise from the provider's
256 bit DEFAULT DRBG.
|
Method Summary |
java.security.KeyPair |
generateKeyPair()
|
void |
initialize(java.security.spec.AlgorithmParameterSpec params)
|
void |
initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
|
void |
initialize(int strength,
java.security.SecureRandom random)
|
| Methods inherited from class java.security.KeyPairGenerator |
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLHDSAKeyPairGeneratorSpi
public SLHDSAKeyPairGeneratorSpi(java.lang.String name)
SLHDSAKeyPairGeneratorSpi
protected SLHDSAKeyPairGeneratorSpi(SLHDSAParameterSpec paramSpec)
initialize
public void initialize(int strength,
java.security.SecureRandom random)
initialize
public void initialize(java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidAlgorithmParameterException
- Throws:
java.security.InvalidAlgorithmParameterException
initialize
public void initialize(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
- Throws:
java.security.InvalidAlgorithmParameterException
generateKeyPair
public java.security.KeyPair generateKeyPair()