APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.security.provider

public Class ML_DSA_Impls

extends Object
Class Inheritance
Imports
sun.security.jca.JCAUtil, sun.security.pkcs.NamedPKCS8Key, sun.security.util.KeyChoices, sun.security.x509.NamedX509Key, java.security.*, .SecureRandom, java.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static enum

Field Summary

Modifier and TypeField and Description
private static final int
public static ML_DSA_Impls.Version

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
public static NamedX509Key
public static byte[]
seedToExpanded(String pname, byte[] seed)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SEED_LENback to summary
private static final int SEED_LEN
versionback to summary
public static ML_DSA_Impls.Version version

Constructor Detail

ML_DSA_Implsback to summary
public ML_DSA_Impls()

Method Detail

name2intback to summary
pack-priv static int name2int(String pname)
privKeyToPubKeyback to summary
public static NamedX509Key privKeyToPubKey(NamedPKCS8Key npk)
seedToExpandedback to summary
public static byte[] seedToExpanded(String pname, byte[] seed)
sun.security.provider back to summary

public sealed Class ML_DSA_Impls.KF

extends NamedKeyFactory
permits KF2, KF3, KF5
Class Inheritance
Known Direct Subclasses
sun.security.provider.ML_DSA_Impls.KF2, sun.security.provider.ML_DSA_Impls.KF3, sun.security.provider.ML_DSA_Impls.KF5

Constructor Summary

AccessConstructor and Description
public
KF()

public
KF(String pname)

Method Summary

Modifier and TypeMethod and Description
protected Key
engineTranslateKey(Key key)

Overrides sun.security.provider.NamedKeyFactory.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

protected byte[]
implExpand(String pname, byte[] input)

Implements abstract sun.security.provider.NamedKeyFactory.implExpand.

User-defined function to generate the expanded format of a NamedPKCS8Key from its encoding format.

Inherited from sun.security.provider.NamedKeyFactory:
engineGeneratePrivateengineGeneratePublicengineGetKeySpectoNamedKey

Constructor Detail

KFback to summary
public KF()
KFback to summary
public KF(String pname)

Method Detail

engineTranslateKeyback to summary
protected Key engineTranslateKey(Key key) throws InvalidKeyException

Overrides sun.security.provider.NamedKeyFactory.engineTranslateKey.

Doc from java.security.KeyFactorySpi.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

Annotations
@Override
Exceptions
InvalidKeyException:
if the given key cannot be processed by this key factory.
implExpandback to summary
protected byte[] implExpand(String pname, byte[] input) throws InvalidKeyException

Implements abstract sun.security.provider.NamedKeyFactory.implExpand.

Doc from sun.security.provider.NamedKeyFactory.implExpand.

User-defined function to generate the expanded format of a NamedPKCS8Key from its encoding format.

This method is called when the key factory is constructing a private key. The ownership of the result is fully granted to the caller.

Annotations
@Override
Exceptions
InvalidKeyException:
if input is invalid
sun.security.provider back to summary

public final Class ML_DSA_Impls.KF2

extends KF
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KF2()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KF:
engineTranslateKeyimplExpand

Constructor Detail

KF2back to summary
public KF2()
sun.security.provider back to summary

public final Class ML_DSA_Impls.KF3

extends KF
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KF3()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KF:
engineTranslateKeyimplExpand

Constructor Detail

KF3back to summary
public KF3()
sun.security.provider back to summary

public final Class ML_DSA_Impls.KF5

extends KF
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KF5()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KF:
engineTranslateKeyimplExpand

Constructor Detail

KF5back to summary
public KF5()
sun.security.provider back to summary

public sealed Class ML_DSA_Impls.KPG

extends NamedKeyPairGenerator
permits KPG2, KPG3, KPG5
Class Inheritance
Known Direct Subclasses
sun.security.provider.ML_DSA_Impls.KPG2, sun.security.provider.ML_DSA_Impls.KPG3, sun.security.provider.ML_DSA_Impls.KPG5

Field Summary

Inherited from sun.security.provider.NamedKeyPairGenerator:
pname

Constructor Summary

AccessConstructor and Description
public
KPG()

public
KPG(String pname)

Method Summary

Modifier and TypeMethod and Description
protected byte[][]
implGenerateKeyPair(String pname, SecureRandom random)

Implements abstract sun.security.provider.NamedKeyPairGenerator.implGenerateKeyPair.

User-defined key pair generator.

Inherited from sun.security.provider.NamedKeyPairGenerator:
generateKeyPairinitializeinitialize

Constructor Detail

KPGback to summary
public KPG()
KPGback to summary
public KPG(String pname)

Method Detail

implGenerateKeyPairback to summary
protected byte[][] implGenerateKeyPair(String pname, SecureRandom random)

Implements abstract sun.security.provider.NamedKeyPairGenerator.implGenerateKeyPair.

Doc from sun.security.provider.NamedKeyPairGenerator.implGenerateKeyPair.

User-defined key pair generator.

Annotations
@Override
sun.security.provider back to summary

public final Class ML_DSA_Impls.KPG2

extends KPG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KPG2()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KPG:
implGenerateKeyPair

Constructor Detail

KPG2back to summary
public KPG2()
sun.security.provider back to summary

public final Class ML_DSA_Impls.KPG3

extends KPG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KPG3()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KPG:
implGenerateKeyPair

Constructor Detail

KPG3back to summary
public KPG3()
sun.security.provider back to summary

public final Class ML_DSA_Impls.KPG5

extends KPG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
KPG5()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.KPG:
implGenerateKeyPair

Constructor Detail

KPG5back to summary
public KPG5()
sun.security.provider back to summary

public sealed Class ML_DSA_Impls.SIG

extends NamedSignature
permits SIG2, SIG3, SIG5
Class Inheritance
Known Direct Subclasses
sun.security.provider.ML_DSA_Impls.SIG2, sun.security.provider.ML_DSA_Impls.SIG3, sun.security.provider.ML_DSA_Impls.SIG5

Constructor Summary

AccessConstructor and Description
public
SIG()

public
SIG(String pname)

Method Summary

Modifier and TypeMethod and Description
protected Object
implCheckPrivateKey(String pname, byte[] sk)

Overrides sun.security.provider.NamedSignature.implCheckPrivateKey.

User-defined function to validate a private key.

protected Object
implCheckPublicKey(String pname, byte[] pk)

Overrides sun.security.provider.NamedSignature.implCheckPublicKey.

User-defined function to validate a public key.

protected byte[]
implSign(String pname, byte[] skBytes, Object sk2, byte[] msg, SecureRandom sr)

Implements abstract sun.security.provider.NamedSignature.implSign.

User-defined sign function.

protected boolean
implVerify(String pname, byte[] pkBytes, Object pk2, byte[] msg, byte[] sigBytes)

Implements abstract sun.security.provider.NamedSignature.implVerify.

User-defined verify function.

Inherited from sun.security.provider.NamedSignature:
engineGetParameterengineGetParametersengineInitSignengineInitVerifyengineSetParameterengineSetParameterengineSignengineUpdateengineUpdateengineVerify

Constructor Detail

SIGback to summary
public SIG()
SIGback to summary
public SIG(String pname)

Method Detail

implCheckPrivateKeyback to summary
protected Object implCheckPrivateKey(String pname, byte[] sk) throws InvalidKeyException

Overrides sun.security.provider.NamedSignature.implCheckPrivateKey.

Doc from sun.security.provider.NamedSignature.implCheckPrivateKey.

User-defined function to validate a private key.

This method will be called in initSign. This gives the provider a chance to reject the key so an InvalidKeyException can be thrown earlier. An implementation can optionally return a "parsed key" as an Object value. This object will be passed into the implSign method along with the raw key.

The default implementation returns null.

Annotations
@Override
Exceptions
InvalidKeyException:
if the key is invalid
implCheckPublicKeyback to summary
protected Object implCheckPublicKey(String pname, byte[] pk) throws InvalidKeyException

Overrides sun.security.provider.NamedSignature.implCheckPublicKey.

Doc from sun.security.provider.NamedSignature.implCheckPublicKey.

User-defined function to validate a public key.

This method will be called in initVerify. This gives the provider a chance to reject the key so an InvalidKeyException can be thrown earlier. An implementation can optionally return a "parsed key" as an Object value. This object will be passed into the implVerify method along with the raw key.

The default implementation returns null.

Annotations
@Override
Exceptions
InvalidKeyException:
if the key is invalid
implSignback to summary
protected byte[] implSign(String pname, byte[] skBytes, Object sk2, byte[] msg, SecureRandom sr)

Implements abstract sun.security.provider.NamedSignature.implSign.

Doc from sun.security.provider.NamedSignature.implSign.

User-defined sign function.

Annotations
@Override
implVerifyback to summary
protected boolean implVerify(String pname, byte[] pkBytes, Object pk2, byte[] msg, byte[] sigBytes) throws SignatureException

Implements abstract sun.security.provider.NamedSignature.implVerify.

Doc from sun.security.provider.NamedSignature.implVerify.

User-defined verify function.

Annotations
@Override
Exceptions
SignatureException:
if there is another error
sun.security.provider back to summary

public final Class ML_DSA_Impls.SIG2

extends SIG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
SIG2()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.SIG:
implCheckPrivateKeyimplCheckPublicKeyimplSignimplVerify

Constructor Detail

SIG2back to summary
public SIG2()
sun.security.provider back to summary

public final Class ML_DSA_Impls.SIG3

extends SIG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
SIG3()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.SIG:
implCheckPrivateKeyimplCheckPublicKeyimplSignimplVerify

Constructor Detail

SIG3back to summary
public SIG3()
sun.security.provider back to summary

public final Class ML_DSA_Impls.SIG5

extends SIG
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
SIG5()

Method Summary

Inherited from sun.security.provider.ML_DSA_Impls.SIG:
implCheckPrivateKeyimplCheckPublicKeyimplSignimplVerify

Constructor Detail

SIG5back to summary
public SIG5()
sun.security.provider back to summary

public final Enum ML_DSA_Impls.Version

extends Enum<ML_DSA_Impls.Version>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ML_DSA_Impls.Version
public static final ML_DSA_Impls.Version

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ML_DSA_Impls.Version
public static ML_DSA_Impls.Version[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DRAFTback to summary
public static final ML_DSA_Impls.Version DRAFT
FINALback to summary
public static final ML_DSA_Impls.Version FINAL

Constructor Detail

Versionback to summary
private Version()

Method Detail

valueOfback to summary
public static ML_DSA_Impls.Version valueOf(String name)
valuesback to summary
public static ML_DSA_Impls.Version[] values()