public class HQCPublicKey
extends iaik.x509.PublicKeyInfo
[0] Carlos Aguilar Melchor, Nicolas Aragon, Slim Bettaieb, Loïc Bidoux, Olivier Blazy, Jurjen Bos, Jean-Christophe Deneuville, Arnaud Dion, Philippe Gaborit, Jérôme Lacan, Edoardo Persichetti, Jean-Marc Robert, Pascal Véron and Gilles Zémor HQC (30.04.2023) – Submission to round 4 of the NIST post-quantum project.
| Constructor and Description |
|---|
HQCPublicKey(byte[] encoded)
Create public key from ASN.1 encoded byte sequence.
|
HQCPublicKey(byte[] byteEk,
HQCParameterSpec 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 HQCPublicKey(byte[] byteEk,
HQCParameterSpec parameterSpec)
byteEk - public key (KEM encapsulate key) as a byte sequenceparameterSpec - the given specification of the parameterspublic HQCPublicKey(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.