public class MLKEMPublicKey
extends iaik.x509.PublicKeyInfo
| Constructor and Description |
|---|
MLKEMPublicKey(byte[] encoded)
Create public key from ASN.1 encoded byte sequence.
|
MLKEMPublicKey(byte[] byteEk,
MLKEMParameterSpec parameterSpec)
Create public key from the byte sequence of the public key.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(byte[] bytes) |
protected byte[] |
encode() |
boolean |
equals(Object o) |
String |
getAlgorithm() |
byte[] |
getRawEncoded()
Returns the public key as a byte array (raw data).
|
int |
hashCode() |
String |
toString() |
public MLKEMPublicKey(byte[] byteEk,
MLKEMParameterSpec parameterSpec)
throws InvalidKeyException
byteEk - public key (KEM encapsulate key) as a byte sequenceparameterSpec - the given specification of the parametersInvalidKeyExceptionpublic MLKEMPublicKey(byte[] encoded)
throws InvalidKeyException
encoded - public key encoded as ASN.1 byte sequenceInvalidKeyException - if the encoding is not validpublic byte[] getRawEncoded()
byteEk)protected void decode(byte[] bytes)
throws InvalidKeyException
decode in class iaik.x509.PublicKeyInfoInvalidKeyExceptionprotected byte[] encode()
encode in class iaik.x509.PublicKeyInfopublic String getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class iaik.x509.PublicKeyInfopublic boolean equals(Object o)
equals in class iaik.x509.PublicKeyInfopublic int hashCode()
hashCode in class iaik.x509.PublicKeyInfopublic String toString()
toString in class iaik.x509.PublicKeyInfoCopyright © 2020–2025 Stiftung SIC. All rights reserved.