public class DilithiumPublicKey
extends iaik.x509.PublicKeyInfo
References: [0] http://javadoc.iaik.tugraz.at/iaik_jce/current/iaik/pkcs/pkcs8/PrivateKeyInfo.html [1] Bai, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Seiler and Stehlé: "CRYSTALS-Dilithium" - 8 February, 2021
Modifier and Type | Field and Description |
---|---|
protected iaik.security.pq.dilithium.DilithiumParams |
params |
Constructor and Description |
---|
DilithiumPublicKey(byte[] encoded)
Create public key from ASN.1 encoded byte sequence.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(byte[] bytes) |
protected byte[] |
encode() |
boolean |
equals(Object other) |
String |
getAlgorithm() |
byte[] |
getRawEncoded() |
int |
hashCode()
Returns the hash code for this DilithiumPublicKey object
|
public DilithiumPublicKey(byte[] encoded) throws InvalidKeyException
encoded
- public key encoded as ASN.1 byte sequenceInvalidKeyException
protected void decode(byte[] bytes) throws InvalidKeyException
decode
in class iaik.x509.PublicKeyInfo
InvalidKeyException
protected byte[] encode()
encode
in class iaik.x509.PublicKeyInfo
public byte[] getRawEncoded()
public String getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class iaik.x509.PublicKeyInfo
public int hashCode()
hashCode
in class iaik.x509.PublicKeyInfo
public boolean equals(Object other)
equals
in class iaik.x509.PublicKeyInfo
Copyright © 2020–2023 Stiftung SIC. All rights reserved.