Class MLKEMKeyGeneratorSpi
- java.lang.Object
-
- javax.crypto.KeyGeneratorSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.mlkem.MLKEMKeyGeneratorSpi
-
- Direct Known Subclasses:
MLKEMKeyGeneratorSpi.MLKEM1024
,MLKEMKeyGeneratorSpi.MLKEM512
,MLKEMKeyGeneratorSpi.MLKEM768
public class MLKEMKeyGeneratorSpi extends javax.crypto.KeyGeneratorSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MLKEMKeyGeneratorSpi.MLKEM1024
static class
MLKEMKeyGeneratorSpi.MLKEM512
static class
MLKEMKeyGeneratorSpi.MLKEM768
-
Constructor Summary
Constructors Modifier Constructor Description MLKEMKeyGeneratorSpi()
protected
MLKEMKeyGeneratorSpi(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
-
MLKEMKeyGeneratorSpi
public MLKEMKeyGeneratorSpi()
-
MLKEMKeyGeneratorSpi
protected MLKEMKeyGeneratorSpi(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
-
-