Package org.conscrypt
Class OpenSslMlKemKeyFactory
java.lang.Object
java.security.KeyFactorySpi
org.conscrypt.OpenSslMlKemKeyFactory
- Direct Known Subclasses:
OpenSslMlKemKeyFactory.MlKem,OpenSslMlKemKeyFactory.MlKem1024,OpenSslMlKemKeyFactory.MlKem768
An implementation of a
KeyFactorySpi for ML-KEM keys based on BoringSSL.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classML-KEMstatic classML-KEM-1024static classML-KEM-768 -
Method Summary
Modifier and TypeMethodDescriptionprotected PrivateKeyengineGeneratePrivate(KeySpec keySpec) protected PublicKeyengineGeneratePublic(KeySpec keySpec) protected <T extends KeySpec>
TengineGetKeySpec(Key key, Class<T> keySpec) protected KeyengineTranslateKey(Key key)
-
Method Details
-
engineGeneratePublic
- Specified by:
engineGeneratePublicin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGeneratePrivate
- Specified by:
engineGeneratePrivatein classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException - Specified by:
engineGetKeySpecin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKeyin classKeyFactorySpi- Throws:
InvalidKeyException
-