public class SLHDSAPrivateKey
extends iaik.pkcs.pkcs8.PrivateKeyInfo
References: [0] FIPS 205 [1] PrivateKeyInfo
| Constructor and Description |
|---|
SLHDSAPrivateKey(byte[] encodedPrivateKey)
Creates a private key from an ASN.1 encoded byte sequence.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(byte[] bytes)
Decodes a byte array to the required representation for the secret key.
|
protected byte[] |
encode()
Returns the encoded secret key.
|
boolean |
equals(Object other) |
String |
getAlgorithm()
Returns the name of the algorithm ID.
|
SLHDSAPublicKey |
getPublicKey()
Returns the
SLHDSAPublicKey public key. |
byte[] |
getRawBytes()
Returns the raw bytes of the private key.
|
byte[] |
getRawBytesWithPubKey()
Returns the raw concatenated bytes of the private key and the public key.
|
int |
hashCode() |
clone, createPrivateKeyInfo, decode, getAlgorithmID, getAttributes, getEncoded, getFormat, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPrivateKey, getPubKey, setAttributes, setPubKey, toASN1Object, toString, writeTofinalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedpublic SLHDSAPrivateKey(byte[] encodedPrivateKey)
throws InvalidKeyException
encodedPrivateKey - private key encoded as ASN.1 byte sequenceInvalidKeyException - if the key is invalid.public byte[] getRawBytes()
public byte[] getRawBytesWithPubKey()
protected void decode(byte[] bytes)
throws InvalidKeyException
decode in class iaik.pkcs.pkcs8.PrivateKeyInfobytes - bytes to be decodedInvalidKeyExceptionprotected byte[] encode()
encode in class iaik.pkcs.pkcs8.PrivateKeyInfopublic String getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class iaik.pkcs.pkcs8.PrivateKeyInfopublic SLHDSAPublicKey getPublicKey()
SLHDSAPublicKey public key.public boolean equals(Object other)
equals in class iaik.pkcs.pkcs8.PrivateKeyInfopublic int hashCode()
hashCode in class iaik.pkcs.pkcs8.PrivateKeyInfoCopyright © 2020–2025 Stiftung SIC. All rights reserved.