Package org.bouncycastle.jcajce.spec
Class MLDSAPrivateKeySpec
java.lang.Object
org.bouncycastle.jcajce.spec.MLDSAPrivateKeySpec
- All Implemented Interfaces:
KeySpec
PrivateKeySpec for ML-DSA.
-
Constructor Summary
ConstructorsConstructorDescriptionMLDSAPrivateKeySpec
(MLDSAParameterSpec params, byte[] seed) MLDSAPrivateKeySpec
(MLDSAParameterSpec params, byte[] privateData, byte[] publicData) Create a KeySpec using the long form private and public data. -
Method Summary
-
Constructor Details
-
MLDSAPrivateKeySpec
-
MLDSAPrivateKeySpec
Create a KeySpec using the long form private and public data.- Parameters:
params
- the parameter set to use with the encodings.privateData
- the long form private key.publicData
- the long form public key - may be null.
-
-
Method Details
-
isSeed
public boolean isSeed() -
getParameterSpec
-
getSeed
public byte[] getSeed() -
getPrivateData
public byte[] getPrivateData() -
getPublicData
public byte[] getPublicData()
-