Class DilithiumPublicKeySpec

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.DilithiumPublicKeySpec
All Implemented Interfaces:
KeySpec

@Deprecated(since="21.0.11.0", forRemoval=true) public class DilithiumPublicKeySpec extends Object implements KeySpec
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by ML-DSA implementation. This CRYSTALS-Dilithium implementation is deprecated and will be removed in a future release, in alignment with NIST's latest recommendations for post-quantum cryptography modernization. Users should transition to the finalized ML-DSA standards.
This class specifies a Dilithium public key spec to be used with DilithiumKeyFactory. This is used to make a representation of the key for import or export.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DilithiumPublicKeySpec(byte[] encoded)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates an instance of this class from the encoded raw key material.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a clone of the encoded raw key material.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DilithiumPublicKeySpec

      public DilithiumPublicKeySpec(byte[] encoded) throws InvalidKeySpecException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an instance of this class from the encoded raw key material.
      Parameters:
      encoded - The encoded bytes contains the raw key material of the public key.
      Throws:
      InvalidKeySpecException
  • Method Details

    • getEncoded

      public byte[] getEncoded()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a clone of the encoded raw key material.
      Returns:
      A clone of the encoded raw key material.