Package org.bouncycastle.pqc.crypto.lms
Class HSSPublicKeyParameters
- java.lang.Object
-
- org.bouncycastle.crypto.params.AsymmetricKeyParameter
-
- org.bouncycastle.pqc.crypto.lms.LMSKeyParameters
-
- org.bouncycastle.pqc.crypto.lms.HSSPublicKeyParameters
-
- All Implemented Interfaces:
CipherParameters,LMSContextBasedVerifier,Encodable
public class HSSPublicKeyParameters extends LMSKeyParameters implements LMSContextBasedVerifier
-
-
Constructor Summary
Constructors Constructor Description HSSPublicKeyParameters(int l, LMSPublicKeyParameters lmsPublicKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)LMSContextgenerateLMSContext(byte[] sigEnc)byte[]getEncoded()Return a byte array representing the implementing object.static HSSPublicKeyParametersgetInstance(java.lang.Object src)intgetL()LMSPublicKeyParametersgetLMSPublicKey()inthashCode()booleanverify(LMSContext context)-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Constructor Detail
-
HSSPublicKeyParameters
public HSSPublicKeyParameters(int l, LMSPublicKeyParameters lmsPublicKey)
-
-
Method Detail
-
getInstance
public static HSSPublicKeyParameters getInstance(java.lang.Object src) throws java.io.IOException
- Throws:
java.io.IOException
-
getL
public int getL()
-
getLMSPublicKey
public LMSPublicKeyParameters getLMSPublicKey()
-
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- Specified by:
getEncodedin classLMSKeyParameters- Returns:
- a byte array representing the encoding.
- Throws:
java.io.IOException- if an issue arises generation the encoding.
-
generateLMSContext
public LMSContext generateLMSContext(byte[] sigEnc)
- Specified by:
generateLMSContextin interfaceLMSContextBasedVerifier
-
verify
public boolean verify(LMSContext context)
- Specified by:
verifyin interfaceLMSContextBasedVerifier
-
-