Package org.bouncycastle.pqc.crypto.lms
Class LMSPublicKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.lms.LMSKeyParameters
org.bouncycastle.pqc.crypto.lms.LMSPublicKeyParameters
- All Implemented Interfaces:
CipherParameters
,LMSContextBasedVerifier
,Encodable
-
Constructor Summary
ConstructorDescriptionLMSPublicKeyParameters
(LMSigParameters parameterSet, LMOtsParameters lmOtsType, byte[] T1, byte[] I) -
Method Summary
Modifier and TypeMethodDescriptionboolean
generateLMSContext
(byte[] signature) byte[]
Return a byte array representing the implementing object.byte[]
getI()
static LMSPublicKeyParameters
getInstance
(Object src) byte[]
getT1()
int
hashCode()
boolean
verify
(LMSContext context) Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
LMSPublicKeyParameters
public LMSPublicKeyParameters(LMSigParameters parameterSet, LMOtsParameters lmOtsType, byte[] T1, byte[] I)
-
-
Method Details
-
getInstance
- Throws:
IOException
-
getEncoded
Description copied from interface:Encodable
Return a byte array representing the implementing object.- Specified by:
getEncoded
in interfaceEncodable
- Specified by:
getEncoded
in classLMSKeyParameters
- Returns:
- a byte array representing the encoding.
- Throws:
IOException
- if an issue arises generation the encoding.
-
getSigParameters
-
getOtsParameters
-
getLMSParameters
-
getT1
public byte[] getT1() -
getI
public byte[] getI() -
equals
-
hashCode
public int hashCode() -
generateLMSContext
- Specified by:
generateLMSContext
in interfaceLMSContextBasedVerifier
-
verify
- Specified by:
verify
in interfaceLMSContextBasedVerifier
-