public class DilithiumPrivateKey
extends iaik.pkcs.pkcs8.PrivateKeyInfo
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
Constructor and Description |
---|
DilithiumPrivateKey(byte[] encodedPrivateKey)
Create private key from an 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() |
DilithiumPublicKey |
getPublicKey() |
byte[] |
getRawBytes()
Returns the raw bytes of the PrivateKey
|
byte[] |
getRawBytesWithPubKey()
Returns the raw concatenated bytes of the PrivateKey and the PublicKey
|
byte[] |
getRawEncoded()
Deprecated.
Use
getRawBytes() instead
Returns the raw Bytes of the PrivateKey (SecretKey) |
byte[] |
getRawEncodedWithPubKey()
Deprecated.
Use
getRawBytesWithPubKey() instead |
int |
hashCode() |
clone, createPrivateKeyInfo, decode, getAlgorithmID, getAttributes, getEncoded, getFormat, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPubKey, setAttributes, setPubKey, toASN1Object, toString, writeTo
finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
public DilithiumPrivateKey(byte[] encodedPrivateKey) throws InvalidKeyException
encodedPrivateKey
- private key encoded as ASN.1 byte sequenceInvalidKeyException
@Deprecated public byte[] getRawEncoded()
getRawBytes()
instead
Returns the raw Bytes of the PrivateKey (SecretKey)public byte[] getRawBytes()
@Deprecated public byte[] getRawEncodedWithPubKey()
getRawBytesWithPubKey()
insteadpublic byte[] getRawBytesWithPubKey()
protected void decode(byte[] bytes) throws InvalidKeyException
decode
in class iaik.pkcs.pkcs8.PrivateKeyInfo
InvalidKeyException
protected byte[] encode()
encode
in class iaik.pkcs.pkcs8.PrivateKeyInfo
public String getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class iaik.pkcs.pkcs8.PrivateKeyInfo
public DilithiumPublicKey getPublicKey()
public boolean equals(Object other)
equals
in class iaik.pkcs.pkcs8.PrivateKeyInfo
public int hashCode()
hashCode
in class iaik.pkcs.pkcs8.PrivateKeyInfo
Copyright © 2020–2023 Stiftung SIC. All rights reserved.