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

public Class MLKEMPrivateKeySpec

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 MLKEMParameterSpec
private final byte[]

Constructor Summary

AccessConstructor and Description
public
public
MLKEMPrivateKeySpec(MLKEMParameterSpec
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 MLKEMParameterSpec
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 MLKEMParameterSpec params
publicDataback to summary
private final byte[] publicData

Constructor Detail

MLKEMPrivateKeySpecback to summary
public MLKEMPrivateKeySpec(MLKEMParameterSpec params, byte[] seed)
MLKEMPrivateKeySpecback to summary
public MLKEMPrivateKeySpec(MLKEMParameterSpec params, byte[] privateData, byte[] publicData)

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

Parameters
params:MLKEMParameterSpec

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 MLKEMParameterSpec 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()