public class KyberPublicKey
extends iaik.x509.PublicKeyInfo
Constructor and Description |
---|
KyberPublicKey(byte[] encoded)
Create public key from ASN.1 encoded byte sequence.
|
KyberPublicKey(byte[] byteEk,
KyberParameterSpec 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 KyberPublicKey(byte[] byteEk, KyberParameterSpec parameterSpec)
byteEk
- public key (KEM encapsulate key) as a byte sequenceparameterSpec
- the given specification of the parameterspublic KyberPublicKey(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.PublicKeyInfo
InvalidKeyException
protected byte[] encode()
encode
in class iaik.x509.PublicKeyInfo
public String getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class iaik.x509.PublicKeyInfo
public boolean equals(Object o)
equals
in class iaik.x509.PublicKeyInfo
public int hashCode()
hashCode
in class iaik.x509.PublicKeyInfo
public String toString()
toString
in class iaik.x509.PublicKeyInfo
Copyright © 2020–2023 Stiftung SIC. All rights reserved.