public class BCMLKEMPublicKey extends java.lang.Object implements MLKEMPublicKey
Constructor and Description |
---|
BCMLKEMPublicKey(MLKEMPublicKeyParameters params) |
BCMLKEMPublicKey(SubjectPublicKeyInfo keyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this ML-KEM public key with another object.
|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
MLKEMParameterSpec |
getParameterSpec()
Return the parameters for this key.
|
byte[] |
getPublicData()
Return the raw encoded data representing the public key: t || rho.
|
int |
hashCode() |
java.lang.String |
toString() |
public BCMLKEMPublicKey(MLKEMPublicKeyParameters params)
public BCMLKEMPublicKey(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other objectpublic int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public byte[] getPublicData()
MLKEMPublicKey
getPublicData
in interface MLKEMPublicKey
public byte[] getEncoded()
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public MLKEMParameterSpec getParameterSpec()
MLKEMKey
getParameterSpec
in interface MLKEMKey
public java.lang.String toString()
toString
in class java.lang.Object