Class DilithiumPublicKeySpec

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

public class DilithiumPublicKeySpec extends Object implements KeySpec
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.
  • Constructor Details

    • DilithiumPublicKeySpec

      public DilithiumPublicKeySpec(byte[] encoded) throws InvalidKeySpecException
      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()
      Returns a clone of the encoded raw key material.
      Returns:
      A clone of the encoded raw key material.