Class MLKEMPrivateKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class MLKEMPrivateKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    PrivateKeySpec for ML-DSA.
    • Constructor Detail

      • MLKEMPrivateKeySpec

        public MLKEMPrivateKeySpec​(MLKEMParameterSpec params,
                                   byte[] seed)
      • MLKEMPrivateKeySpec

        public MLKEMPrivateKeySpec​(MLKEMParameterSpec 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()
      • getSeed

        public byte[] getSeed()
      • getPrivateData

        public byte[] getPrivateData()
      • getPublicData

        public byte[] getPublicData()