Class HssPrivateKeyParameters
- Namespace
- Org.BouncyCastle.Pqc.Crypto.Lms
- Assembly
- BouncyCastle.Cryptography.dll
public class HssPrivateKeyParameters : LmsKeyParameters, ICipherParameters, IEncodable, ILmsContextBasedSigner
- Inheritance
-
HssPrivateKeyParameters
- Implements
- Inherited Members
Constructors
HssPrivateKeyParameters(int, IList<LmsPrivateKeyParameters>, IList<LmsSignature>, long, long)
public HssPrivateKeyParameters(int l, IList<LmsPrivateKeyParameters> keys, IList<LmsSignature> sig, long index, long indexLimit)
Parameters
lintkeysIList<LmsPrivateKeyParameters>sigIList<LmsSignature>indexlongindexLimitlong
Properties
IndexLimit
public long IndexLimit { get; }
Property Value
L
[Obsolete("Use 'Level' instead")]
public int L { get; }
Property Value
Level
public int Level { get; }
Property Value
Methods
Clone()
protected object Clone()
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
ExtractKeyShard(int)
public HssPrivateKeyParameters ExtractKeyShard(int usageCount)
Parameters
usageCountint
Returns
GenerateLmsContext()
public LmsContext GenerateLmsContext()
Returns
GenerateSignature(LmsContext)
public byte[] GenerateSignature(LmsContext context)
Parameters
contextLmsContext
Returns
- byte[]
GetEncoded()
Return a byte array representing the implementing object.
public override byte[] GetEncoded()
Returns
- byte[]
An encoding of this object as a byte array.
Exceptions
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetIndex()
public long GetIndex()
Returns
GetInstance(byte[], byte[])
public static HssPrivateKeyParameters GetInstance(byte[] privEnc, byte[] pubEnc)
Parameters
Returns
GetInstance(object)
public static HssPrivateKeyParameters GetInstance(object src)
Parameters
srcobject
Returns
GetKeys()
public IList<LmsPrivateKeyParameters> GetKeys()
Returns
GetLmsParameters()
public LmsParameters[] GetLmsParameters()
Returns
GetPublicKey()
public HssPublicKeyParameters GetPublicKey()
Returns
GetUsagesRemaining()
public long GetUsagesRemaining()
Returns
IsShard()
public bool IsShard()
Returns
UpdateHierarchy(IList<LmsPrivateKeyParameters>, IList<LmsSignature>)
protected void UpdateHierarchy(IList<LmsPrivateKeyParameters> newKeys, IList<LmsSignature> newSig)
Parameters
newKeysIList<LmsPrivateKeyParameters>newSigIList<LmsSignature>