Class LMSSignature
- java.lang.Object
-
- org.bouncycastle.crypto.signers.lms.LMSSignature
-
- All Implemented Interfaces:
Encodable
public class LMSSignature extends java.lang.Object implements Encodable
An LMS signature (RFC 8554 sec. 5.4). Opaque outside this package: decode one withgetInstance(Object)and re-encode it withgetEncoded(). AnHSSPrivateKeyParameterscarries the chaining signatures of its hierarchy as instances of this class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)byte[]getEncoded()Return a byte array representing the implementing object.static LMSSignaturegetInstance(java.lang.Object src)inthashCode()
-
-
-
Method Detail
-
getInstance
public static LMSSignature getInstance(java.lang.Object src) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionDescription copied from interface:EncodableReturn a byte array representing the implementing object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
java.io.IOException- if an issue arises generation the encoding.
-
-