Class KyberKeyGeneratorSpi
- java.lang.Object
-
- javax.crypto.KeyGeneratorSpi
-
- org.bouncycastle.pqc.jcajce.provider.kyber.KyberKeyGeneratorSpi
-
- Direct Known Subclasses:
KyberKeyGeneratorSpi.Kyber1024
,KyberKeyGeneratorSpi.Kyber512
,KyberKeyGeneratorSpi.Kyber768
public class KyberKeyGeneratorSpi extends javax.crypto.KeyGeneratorSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KyberKeyGeneratorSpi.Kyber1024
static class
KyberKeyGeneratorSpi.Kyber512
static class
KyberKeyGeneratorSpi.Kyber768
-
Constructor Summary
Constructors Modifier Constructor Description KyberKeyGeneratorSpi()
protected
KyberKeyGeneratorSpi(MLKEMParameters kyberParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.crypto.SecretKey
engineGenerateKey()
protected void
engineInit(int i, java.security.SecureRandom secureRandom)
protected void
engineInit(java.security.SecureRandom secureRandom)
protected void
engineInit(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec, java.security.SecureRandom secureRandom)
-
-
-
Constructor Detail
-
KyberKeyGeneratorSpi
public KyberKeyGeneratorSpi()
-
KyberKeyGeneratorSpi
protected KyberKeyGeneratorSpi(MLKEMParameters kyberParameters)
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.SecureRandom secureRandom)
- Specified by:
engineInit
in classjavax.crypto.KeyGeneratorSpi
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec, java.security.SecureRandom secureRandom) throws java.security.InvalidAlgorithmParameterException
- Specified by:
engineInit
in classjavax.crypto.KeyGeneratorSpi
- Throws:
java.security.InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int i, java.security.SecureRandom secureRandom)
- Specified by:
engineInit
in classjavax.crypto.KeyGeneratorSpi
-
engineGenerateKey
protected javax.crypto.SecretKey engineGenerateKey()
- Specified by:
engineGenerateKey
in classjavax.crypto.KeyGeneratorSpi
-
-