public class MLDSAPrivateKey
extends iaik.pkcs.pkcs8.PrivateKeyInfo
References: [0] PrivateKeyInfo [1] FIPS 204
Constructor and Description |
---|
MLDSAPrivateKey(byte[] encodedPrivateKey)
Create a 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() |
MLDSAPublicKey |
getPublicKey() |
byte[] |
getRawBytes()
Returns the raw bytes of the PrivateKey
|
byte[] |
getRawBytesWithPubKey()
Returns the raw concatenated bytes of the PrivateKey and the PublicKey
|
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 MLDSAPrivateKey(byte[] encodedPrivateKey) throws InvalidKeyException
encodedPrivateKey
- private key encoded as ASN.1 byte sequenceInvalidKeyException
public byte[] getRawBytes()
public 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 MLDSAPublicKey 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–2024 Stiftung SIC. All rights reserved.