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, writeTo
finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, isDestroyed
public 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.PrivateKeyInfo
bytes
- bytes to be decodedInvalidKeyException
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 SLHDSAPublicKey getPublicKey()
SLHDSAPublicKey
public key.public boolean equals(Object other)
equals
in class iaik.pkcs.pkcs8.PrivateKeyInfo
public int hashCode()
hashCode
in class iaik.pkcs.pkcs8.PrivateKeyInfo
Copyright © 2020–2025 Stiftung SIC. All rights reserved.