Class DilithiumPublicKey
java.lang.Object
com.ibm.crypto.hdwrCCA.provider.DilithiumPublicKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey
A public hardware key for the CRYSTALS-Dilithium 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 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 tokenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsymmetricKey
getParams
-
Constructor Details
-
DilithiumPublicKey
Create a CRYSTALS-Dilithium 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:
getAlgorithmin interfaceKey- Returns:
- the algorithm
-
getFormat
-
getEncoded
public byte[] getEncoded()Returns the encoded raw key material for this public key- Specified by:
getEncodedin interfaceKey- Returns:
- encoded raw key material
-
getToken
public byte[] getToken()Returns a clone of the public key token- Returns:
- the public key token
-