Table of Contents

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

l int
keys IList<LmsPrivateKeyParameters>
sig IList<LmsSignature>
index long
indexLimit long

Properties

IndexLimit

public long IndexLimit { get; }

Property Value

long

L

[Obsolete("Use 'Level' instead")]
public int L { get; }

Property Value

int

Level

public int Level { get; }

Property Value

int

Methods

Clone()

protected object Clone()

Returns

object

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ExtractKeyShard(int)

public HssPrivateKeyParameters ExtractKeyShard(int usageCount)

Parameters

usageCount int

Returns

HssPrivateKeyParameters

GenerateLmsContext()

public LmsContext GenerateLmsContext()

Returns

LmsContext

GenerateSignature(LmsContext)

public byte[] GenerateSignature(LmsContext context)

Parameters

context LmsContext

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

IOException

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

long

GetInstance(byte[], byte[])

public static HssPrivateKeyParameters GetInstance(byte[] privEnc, byte[] pubEnc)

Parameters

privEnc byte[]
pubEnc byte[]

Returns

HssPrivateKeyParameters

GetInstance(object)

public static HssPrivateKeyParameters GetInstance(object src)

Parameters

src object

Returns

HssPrivateKeyParameters

GetKeys()

public IList<LmsPrivateKeyParameters> GetKeys()

Returns

IList<LmsPrivateKeyParameters>

GetLmsParameters()

public LmsParameters[] GetLmsParameters()

Returns

LmsParameters[]

GetPublicKey()

public HssPublicKeyParameters GetPublicKey()

Returns

HssPublicKeyParameters

GetUsagesRemaining()

public long GetUsagesRemaining()

Returns

long

IsShard()

public bool IsShard()

Returns

bool

UpdateHierarchy(IList<LmsPrivateKeyParameters>, IList<LmsSignature>)

protected void UpdateHierarchy(IList<LmsPrivateKeyParameters> newKeys, IList<LmsSignature> newSig)

Parameters

newKeys IList<LmsPrivateKeyParameters>
newSig IList<LmsSignature>