LMSPrivateKeyParameters instead.@Deprecated public class LMSPrivateKeyParameters extends LMSKeyParameters implements LMSContextBasedSigner
| Constructor and Description |
|---|
LMSPrivateKeyParameters(LMSigParameters lmsParameter,
LMOtsParameters otsParameters,
int q,
byte[] I,
int maxQ,
byte[] masterSecret)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Deprecated.
|
LMSPrivateKeyParameters |
extractKeyShard(int usageCount)
Deprecated.
Return a key that can be used usageCount times.
|
LMSContext |
generateLMSContext()
Deprecated.
|
byte[] |
generateSignature(LMSContext context)
Deprecated.
|
byte[] |
getEncoded()
Deprecated.
Return a byte array representing the implementing object.
|
byte[] |
getI()
Deprecated.
|
int |
getIndex()
Deprecated.
Return the key index (the q value).
|
int |
getIndexLimit()
Deprecated.
|
static LMSPrivateKeyParameters |
getInstance(byte[] privEnc,
byte[] pubEnc)
Deprecated.
|
static LMSPrivateKeyParameters |
getInstance(java.lang.Object src)
Deprecated.
|
byte[] |
getMasterSecret()
Deprecated.
|
LMOtsParameters |
getOtsParameters()
Deprecated.
|
LMSPublicKeyParameters |
getPublicKey()
Deprecated.
|
LMSigParameters |
getSigParameters()
Deprecated.
|
long |
getUsagesRemaining()
Deprecated.
|
int |
hashCode()
Deprecated.
|
isPrivatepublic LMSPrivateKeyParameters(LMSigParameters lmsParameter, LMOtsParameters otsParameters, int q, byte[] I, int maxQ, byte[] masterSecret)
public static LMSPrivateKeyParameters getInstance(byte[] privEnc, byte[] pubEnc) throws java.io.IOException
java.io.IOExceptionpublic static LMSPrivateKeyParameters getInstance(java.lang.Object src) throws java.io.IOException
java.io.IOExceptionpublic int getIndex()
public LMSContext generateLMSContext()
generateLMSContext in interface LMSContextBasedSignerpublic byte[] generateSignature(LMSContext context)
generateSignature in interface LMSContextBasedSignerpublic LMSPrivateKeyParameters extractKeyShard(int usageCount)
Note: this will use the range [index...index + usageCount) for the current key.
usageCount - the number of usages the key should have.public LMSigParameters getSigParameters()
public LMOtsParameters getOtsParameters()
public byte[] getI()
public byte[] getMasterSecret()
public int getIndexLimit()
public long getUsagesRemaining()
getUsagesRemaining in interface LMSContextBasedSignerpublic LMSPublicKeyParameters getPublicKey()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic byte[] getEncoded()
throws java.io.IOException
EncodablegetEncoded in interface EncodablegetEncoded in class LMSKeyParametersjava.io.IOException - if an issue arises generation the encoding.