Package org.conscrypt
Class OpenSslMlDsaPrivateKey
java.lang.Object
org.conscrypt.OpenSslMlDsaPrivateKey
- All Implemented Interfaces:
Serializable,Key,PrivateKey,Destroyable,OpenSSLKeyHolder
An OpenSSL ML-DSA private key.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MlDsaAlgorithmprivate OpenSSLKeyprivate byte[]private static final long -
Constructor Summary
ConstructorsConstructorDescriptionOpenSslMlDsaPrivateKey(byte[] seed, MlDsaAlgorithm algorithm) OpenSslMlDsaPrivateKey(OpenSSLKey key, MlDsaAlgorithm algorithm) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()private static byte[]encodeSeed(byte[] unencodedSeed, MlDsaAlgorithm algorithm) booleanprivate static MlDsaAlgorithmgetAlgorithmFromEncodedSeed(byte[] encodedSeed) byte[]private static OpenSSLKeygetOpenSslKeyFromSeed(byte[] seed, MlDsaAlgorithm algorithm) (package private) byte[]getSeed()inthashCode()booleanprivate static booleanisValid(byte[] encodedSeed, MlDsaAlgorithm algorithm) private voidreadObject(ObjectInputStream stream) private voidwriteObject(ObjectOutputStream stream)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
seed
private byte[] seed -
algorithm
-
key
-
-
Constructor Details
-
OpenSslMlDsaPrivateKey
OpenSslMlDsaPrivateKey(OpenSSLKey key, MlDsaAlgorithm algorithm) -
OpenSslMlDsaPrivateKey
-
-
Method Details
-
getOpenSslKeyFromSeed
private static OpenSSLKey getOpenSslKeyFromSeed(byte[] seed, MlDsaAlgorithm algorithm) throws OpenSSLX509CertificateFactory.ParsingException -
isValid
-
getAlgorithmFromEncodedSeed
-
encodeSeed
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getMlDsaAlgorithm
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getSeed
byte[] getSeed() -
getOpenSSLKey
- Specified by:
getOpenSSLKeyin interfaceOpenSSLKeyHolder
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-
equals
-
hashCode
public int hashCode() -
readObject
- Throws:
IOExceptionClassNotFoundException
-
writeObject
- Throws:
IOException
-