public class HQCPrivateKey
extends iaik.pkcs.pkcs8.PrivateKeyInfo
[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 |
|---|
HQCPrivateKey(byte[] encoded)
Create private key from an ASN.1 encoded byte sequence
|
HQCPrivateKey(byte[] byteDk,
HQCParameterSpec parameterSpec)
Create private key from raw byte array only, which contains the private key,
optionally the public key, the hash of the public key and the seed
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(byte[] bytes) |
protected byte[] |
encode() |
boolean |
equals(Object o) |
String |
getAlgorithm() |
protected byte[] |
getRawEncoded()
Returns the private key as a byte array (raw data).
|
int |
hashCode() |
String |
toString() |
clone, createPrivateKeyInfo, decode, getAlgorithmID, getAttributes, getEncoded, getFormat, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPubKey, setAttributes, setPubKey, toASN1Object, writeTofinalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedpublic HQCPrivateKey(byte[] byteDk,
HQCParameterSpec parameterSpec)
throws InvalidKeyException
byteDk - private key (KEM decaps key) as a byte sequenceparameterSpec - the given specification of the parametersInvalidKeyException - throws an error if failing to create the encoding of the private keypublic HQCPrivateKey(byte[] encoded)
throws InvalidKeyException
encoded - private key encoded as ASN.1 byte sequenceInvalidKeyException - if the encoding is not validprotected byte[] getRawEncoded()
byteDk||byteEk||byteHashedEk||z)protected void decode(byte[] bytes)
throws InvalidKeyException
decode in class iaik.pkcs.pkcs8.PrivateKeyInfoInvalidKeyExceptionprotected byte[] encode()
encode in class iaik.pkcs.pkcs8.PrivateKeyInfopublic String getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class iaik.pkcs.pkcs8.PrivateKeyInfopublic boolean equals(Object o)
equals in class iaik.pkcs.pkcs8.PrivateKeyInfopublic int hashCode()
hashCode in class iaik.pkcs.pkcs8.PrivateKeyInfopublic String toString()
toString in class iaik.pkcs.pkcs8.PrivateKeyInfoCopyright © 2020–2025 Stiftung SIC. All rights reserved.