Bouncy Castle Cryptography Library 1.81

org.bouncycastle.jcajce.spec
Class MLDSAPrivateKeySpec

java.lang.Object
  extended byorg.bouncycastle.jcajce.spec.MLDSAPrivateKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class MLDSAPrivateKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

PrivateKeySpec for ML-DSA.


Constructor Summary
MLDSAPrivateKeySpec(MLDSAParameterSpec params, byte[] seed)
           
MLDSAPrivateKeySpec(MLDSAParameterSpec params, byte[] privateData, byte[] publicData)
          Create a KeySpec using the long form private and public data.
 
Method Summary
 MLDSAParameterSpec getParameterSpec()
           
 byte[] getPrivateData()
           
 byte[] getPublicData()
           
 byte[] getSeed()
           
 boolean isSeed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MLDSAPrivateKeySpec

public MLDSAPrivateKeySpec(MLDSAParameterSpec params,
                           byte[] seed)

MLDSAPrivateKeySpec

public MLDSAPrivateKeySpec(MLDSAParameterSpec params,
                           byte[] privateData,
                           byte[] publicData)
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 Detail

isSeed

public boolean isSeed()

getParameterSpec

public MLDSAParameterSpec getParameterSpec()

getSeed

public byte[] getSeed()

getPrivateData

public byte[] getPrivateData()

getPublicData

public byte[] getPublicData()

Bouncy Castle Cryptography Library 1.81