Class KyberPublicKey

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.KyberPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey

@Deprecated(since="21.0.11.0", forRemoval=true) public final class KyberPublicKey extends Object implements PublicKey
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by ML-KEM implementation. This CRYSTALS-Kyber 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-KEM standards.
A public hardware key for the CRYSTALS-Kyber algorithm. This key contains a token (which can be either a tokenized representation of a clear key, a key encrypted under the master key, or a label to a stored key in the PKDS), encoded bytes of the raw key material, and attributes (KeyHWAttributeValues, which include the key type and key usage).
See Also:
  • Field Summary

    Fields inherited from interface java.security.PublicKey

    serialVersionUID
  • Constructor Summary

    Constructors
    Constructor
    Description
    KyberPublicKey(byte[] token)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a CRYSTALS-Kyber public key
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • KyberPublicKey

      public KyberPublicKey(byte[] token) throws InvalidKeyException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a CRYSTALS-Kyber public key
      Parameters:
      token - This is a CCA token which contains a token header plus the key material.
      Throws:
      InvalidKeyException
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the algorithm
      Specified by:
      getAlgorithm in interface Key
      Returns:
      the algorithm
    • getFormat

      public String getFormat()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the format for this key.
      Specified by:
      getFormat in interface Key
      Returns:
      the format for this key
    • getEncoded

      public byte[] getEncoded()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the encoded raw key material for this public key
      Specified by:
      getEncoded in interface Key
      Returns:
      encoded raw key material
    • getToken

      public byte[] getToken()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a clone of the public key token
      Returns:
      the public key token