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
ConstructorsConstructorDescriptionKyberPublicKey(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 TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the algorithmbyte[]Deprecated, for removal: This API element is subject to removal in a future version.Returns the encoded raw key material for this public keyDeprecated, for removal: This API element is subject to removal in a future version.Return the format for this key.byte[]getToken()Deprecated, for removal: This API element is subject to removal in a future version.Returns a clone of the public key token
-
Constructor Details
-
KyberPublicKey
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
Deprecated, for removal: This API element is subject to removal in a future version.Returns the algorithm- Specified by:
getAlgorithmin interfaceKey- Returns:
- the algorithm
-
getFormat
Deprecated, for removal: This API element is subject to removal in a future version.Return 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:
getEncodedin interfaceKey- 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
-