Class LMSPrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.lms.LMSKeyParameters
org.bouncycastle.pqc.crypto.lms.LMSPrivateKeyParameters
- All Implemented Interfaces:
CipherParameters, LMSContextBasedSigner, Encodable
@Deprecated
public class LMSPrivateKeyParameters
extends LMSKeyParameters
implements LMSContextBasedSigner
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionLMSPrivateKeyParameters(LMSigParameters lmsParameter, LMOtsParameters otsParameters, int q, byte[] I, int maxQ, byte[] masterSecret) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.extractKeyShard(int usageCount) Deprecated.Return a key that can be used usageCount times.Deprecated.byte[]generateSignature(LMSContext context) Deprecated.byte[]Deprecated.Return a byte array representing the implementing object.byte[]getI()Deprecated.intgetIndex()Deprecated.Return the key index (the q value).intDeprecated.static LMSPrivateKeyParametersgetInstance(byte[] privEnc, byte[] pubEnc) Deprecated.static LMSPrivateKeyParametersgetInstance(Object src) Deprecated.byte[]Deprecated.Deprecated.Deprecated.Deprecated.longDeprecated.inthashCode()Deprecated.Methods inherited from class AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
LMSPrivateKeyParameters
public LMSPrivateKeyParameters(LMSigParameters lmsParameter, LMOtsParameters otsParameters, int q, byte[] I, int maxQ, byte[] masterSecret) Deprecated.
-
-
Method Details
-
getInstance
Deprecated.- Throws:
IOException
-
getInstance
Deprecated.- Throws:
IOException
-
getIndex
public int getIndex()Deprecated.Return the key index (the q value).- Returns:
- private key index number.
-
generateLMSContext
Deprecated.- Specified by:
generateLMSContextin interfaceLMSContextBasedSigner
-
generateSignature
Deprecated.- Specified by:
generateSignaturein interfaceLMSContextBasedSigner
-
extractKeyShard
Deprecated.Return a key that can be used usageCount times.Note: this will use the range [index...index + usageCount) for the current key.
- Parameters:
usageCount- the number of usages the key should have.- Returns:
- a key based on the current key that can be used usageCount times.
-
getSigParameters
Deprecated. -
getOtsParameters
Deprecated. -
getI
public byte[] getI()Deprecated. -
getMasterSecret
public byte[] getMasterSecret()Deprecated. -
getIndexLimit
public int getIndexLimit()Deprecated. -
getUsagesRemaining
public long getUsagesRemaining()Deprecated.- Specified by:
getUsagesRemainingin interfaceLMSContextBasedSigner
-
getPublicKey
Deprecated. -
equals
-
hashCode
-
getEncoded
Deprecated.Description 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:
IOException- if an issue arises generation the encoding.
-
LMSPrivateKeyParametersinstead.