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.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–2024 Stiftung SIC. All rights reserved.