java.lang.Object
com.ibm.crypto.hdwrCCA.provider.KyberPublicKey
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the algorithmbyte[]
Returns the encoded raw key material for this public keyReturn the format for this key.byte[]
getToken()
Returns a clone of the public key token
-
Constructor Details
-
KyberPublicKey
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
Returns the algorithm- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- the algorithm
-
getFormat
Return the format for this key. -
getEncoded
public byte[] getEncoded()Returns the encoded raw key material for this public key- Specified by:
getEncoded
in interfaceKey
- Returns:
- encoded raw key material
-
getToken
public byte[] getToken()Returns a clone of the public key token- Returns:
- the public key token
-