Top Description Fields Constructors Methods
org.bouncycastle.jcajce.spec

public Class MLDSAPrivateKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.security.spec.KeySpec, org.bouncycastle.util.Arrays

PrivateKeySpec for ML-DSA.

Field Summary

Modifier and TypeField and Description
private final byte[]
private final boolean
private final MLDSAParameterSpec
private final byte[]

Constructor Summary

AccessConstructor and Description
public
public
MLDSAPrivateKeySpec(MLDSAParameterSpec
the parameter set to use with the encodings.
params
,
byte[]
the long form private key.
privateData
,
byte[]
the long form public key - may be null.
publicData
)

Create a KeySpec using the long form private and public data.

Method Summary

Modifier and TypeMethod and Description
public MLDSAParameterSpec
public byte[]
public byte[]
public byte[]
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

databack to summary
private final byte[] data
isSeedback to summary
private final boolean isSeed
paramsback to summary
private final MLDSAParameterSpec params
publicDataback to summary
private final byte[] publicData

Constructor Detail

MLDSAPrivateKeySpecback to summary
public MLDSAPrivateKeySpec(MLDSAParameterSpec params, byte[] seed)
MLDSAPrivateKeySpecback to summary
public MLDSAPrivateKeySpec(MLDSAParameterSpec params, byte[] privateData, byte[] publicData)

Create a KeySpec using the long form private and public data.

Parameters
params:MLDSAParameterSpec

the parameter set to use with the encodings.

privateData:byte[]

the long form private key.

publicData:byte[]

the long form public key - may be null.

Method Detail

getParameterSpecback to summary
public MLDSAParameterSpec getParameterSpec()
getPrivateDataback to summary
public byte[] getPrivateData()
getPublicDataback to summary
public byte[] getPublicData()
getSeedback to summary
public byte[] getSeed()
isSeedback to summary
public boolean isSeed()