Class OpenSslMlDsaKeyFactory
java.lang.Object
java.security.KeyFactorySpi
org.conscrypt.OpenSslMlDsaKeyFactory
- Direct Known Subclasses:
OpenSslMlDsaKeyFactory.MlDsa, OpenSslMlDsaKeyFactory.MlDsa44, OpenSslMlDsaKeyFactory.MlDsa65, OpenSslMlDsaKeyFactory.MlDsa87
An implementation of a
KeyFactorySpi for MLDSA keys based on BoringSSL.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classML-DSAstatic classML-DSA-44static classML-DSA-65static classML-DSA-87 -
Field Summary
Fields -
Constructor Summary
Constructors -
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) (package private) static MlDsaAlgorithm(package private) static intgetPKeyType(MlDsaAlgorithm algorithm) private OpenSslMlDsaPrivateKeymakePrivateKey(OpenSSLKey key) private OpenSslMlDsaPrivateKeymakePrivateKeyFromSeed(byte[] seed, MlDsaAlgorithm algorithm) private OpenSslMlDsaPublicKeymakePublicKey(OpenSSLKey key) private OpenSslMlDsaPublicKeymakePublicKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm) (package private) abstract booleansupportsAlgorithm(MlDsaAlgorithm algorithm)
-
Field Details
-
defaultAlgorithm
-
-
Constructor Details
-
OpenSslMlDsaKeyFactory
-
-
Method Details
-
supportsAlgorithm
-
makePublicKeyFromRaw
private OpenSslMlDsaPublicKey makePublicKeyFromRaw(byte[] raw, MlDsaAlgorithm algorithm) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
getMlDsaAlgorithm
-
getPKeyType
-
makePublicKey
- Throws:
InvalidKeySpecException
-
engineGeneratePublic
- Specified by:
engineGeneratePublicin classKeyFactorySpi- Throws:
InvalidKeySpecException
-
makePrivateKeyFromSeed
private OpenSslMlDsaPrivateKey makePrivateKeyFromSeed(byte[] seed, MlDsaAlgorithm algorithm) throws InvalidKeySpecException - Throws:
InvalidKeySpecException
-
makePrivateKey
- 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
-