Package org.bouncycastle.pqc.crypto.lms
Class HSSSignature
java.lang.Object
org.bouncycastle.pqc.crypto.lms.HSSSignature
- All Implemented Interfaces:
Encodable
-
Constructor Summary
ConstructorsConstructorDescriptionHSSSignature
(int lMinus1, org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] signedPubKey, org.bouncycastle.pqc.crypto.lms.LMSSignature signature) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
Return a byte array representing the implementing object.static HSSSignature
getInstance
(Object src, int L) int
org.bouncycastle.pqc.crypto.lms.LMSSignature
org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[]
int
hashCode()
-
Constructor Details
-
HSSSignature
public HSSSignature(int lMinus1, org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] signedPubKey, org.bouncycastle.pqc.crypto.lms.LMSSignature signature)
-
-
Method Details
-
getInstance
- Parameters:
src
- byte[], InputStream or HSSSignatureL
- The HSS depth, available from public key.- Returns:
- An HSSSignature instance.
- Throws:
IOException
-
getlMinus1
public int getlMinus1() -
getSignedPubKey
public org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] getSignedPubKey() -
getSignature
public org.bouncycastle.pqc.crypto.lms.LMSSignature getSignature() -
equals
-
hashCode
public int hashCode() -
getEncoded
Description copied from interface:Encodable
Return a byte array representing the implementing object.- Specified by:
getEncoded
in interfaceEncodable
- Returns:
- a byte array representing the encoding.
- Throws:
IOException
- if an issue arises generation the encoding.
-