Class BCMLKEMPublicKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.mlkem.BCMLKEMPublicKey
- All Implemented Interfaces:
Serializable
,Key
,PublicKey
,MLKEMKey
,MLKEMPublicKey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BCMLKEMPublicKey
-
BCMLKEMPublicKey
- Throws:
IOException
-
-
Method Details
-
equals
Compare this ML-KEM public key with another object. -
hashCode
public int hashCode() -
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
- Returns:
- name of the algorithm - "ML-KEM" followed by the parameter type.
-
getPublicData
public byte[] getPublicData()Description copied from interface:MLKEMPublicKey
Return the raw encoded data representing the public key: t || rho.- Specified by:
getPublicData
in interfaceMLKEMPublicKey
- Returns:
- the concatenation of t and rho.
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
getFormat
-
getParameterSpec
Description copied from interface:MLKEMKey
Return the parameters for this key.- Specified by:
getParameterSpec
in interfaceMLKEMKey
- Returns:
- a MLKEMParameterSpec
-
toString
-