public class SLHDSAPublicKey
extends iaik.x509.PublicKeyInfo
References: [0] FIPS 205 [1] PublicKeyInfo
Constructor and Description |
---|
SLHDSAPublicKey(byte[] encodedPublicKey)
Creates a public key from an ASN.1 encoded byte sequence.
|
SLHDSAPublicKey(byte[] publicKey,
iaik.security.pq.slhdsa.SLHDSAParams params,
iaik.asn1.structures.AlgorithmID algorithmID)
Creates a public key based on the public key bytes, the parameters and the algorithm ID.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(byte[] bytes)
Decodes the bytes.
|
protected byte[] |
encode() |
String |
getAlgorithm() |
byte[] |
getRawBytes()
Returns the raw public key without any encoding.
|
public SLHDSAPublicKey(byte[] publicKey, iaik.security.pq.slhdsa.SLHDSAParams params, iaik.asn1.structures.AlgorithmID algorithmID)
publicKey
- public key bytesparams
- SLH-DSA parametersalgorithmID
- algorithm IDpublic SLHDSAPublicKey(byte[] encodedPublicKey) throws InvalidKeyException
encodedPublicKey
- encoded public keyInvalidKeyException
- if the key is invalid.public byte[] getRawBytes()
protected void decode(byte[] bytes) throws InvalidKeyException
decode
in class iaik.x509.PublicKeyInfo
bytes
- bytesInvalidKeyException
- if the key is invalid.protected byte[] encode()
encode
in class iaik.x509.PublicKeyInfo
public String getAlgorithm()
getAlgorithm
in interface Key
getAlgorithm
in class iaik.x509.PublicKeyInfo
Copyright © 2020–2025 Stiftung SIC. All rights reserved.