HSSPrivateKeyParameters instead.@Deprecated public class HSSPrivateKeyParameters extends LMSKeyParameters implements LMSContextBasedSigner
| Constructor and Description |
|---|
HSSPrivateKeyParameters(int l,
java.util.List<LMSPrivateKeyParameters> keys,
java.util.List<org.bouncycastle.pqc.crypto.lms.LMSSignature> sig,
long index,
long indexLimit)
Deprecated.
|
HSSPrivateKeyParameters(LMSPrivateKeyParameters key,
long index,
long indexLimit)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone()
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
HSSPrivateKeyParameters |
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.
|
long |
getIndex()
Deprecated.
|
static HSSPrivateKeyParameters |
getInstance(byte[] privEnc,
byte[] pubEnc)
Deprecated.
|
static HSSPrivateKeyParameters |
getInstance(java.lang.Object src)
Deprecated.
|
int |
getL()
Deprecated.
|
LMSParameters[] |
getLMSParameters()
Deprecated.
|
HSSPublicKeyParameters |
getPublicKey()
Deprecated.
|
long |
getUsagesRemaining()
Deprecated.
|
int |
hashCode()
Deprecated.
|
protected void |
updateHierarchy(LMSPrivateKeyParameters[] newKeys,
org.bouncycastle.pqc.crypto.lms.LMSSignature[] newSig)
Deprecated.
|
isPrivatepublic HSSPrivateKeyParameters(LMSPrivateKeyParameters key, long index, long indexLimit)
public HSSPrivateKeyParameters(int l,
java.util.List<LMSPrivateKeyParameters> keys,
java.util.List<org.bouncycastle.pqc.crypto.lms.LMSSignature> sig,
long index,
long indexLimit)
public static HSSPrivateKeyParameters getInstance(byte[] privEnc, byte[] pubEnc) throws java.io.IOException
java.io.IOExceptionpublic static HSSPrivateKeyParameters getInstance(java.lang.Object src) throws java.io.IOException
java.io.IOExceptionpublic int getL()
public long getIndex()
public LMSParameters[] getLMSParameters()
protected void updateHierarchy(LMSPrivateKeyParameters[] newKeys, org.bouncycastle.pqc.crypto.lms.LMSSignature[] newSig)
public long getUsagesRemaining()
getUsagesRemaining in interface LMSContextBasedSignerpublic HSSPrivateKeyParameters 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 HSSPublicKeyParameters getPublicKey()
public boolean equals(java.lang.Object o)
equals 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.public int hashCode()
hashCode in class java.lang.Objectprotected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic LMSContext generateLMSContext()
generateLMSContext in interface LMSContextBasedSignerpublic byte[] generateSignature(LMSContext context)
generateSignature in interface LMSContextBasedSigner