Table of Contents

Class LmsPrivateKeyParameters

Namespace
Org.BouncyCastle.Pqc.Crypto.Lms
Assembly
BouncyCastle.Cryptography.dll
public sealed class LmsPrivateKeyParameters : LmsKeyParameters, ICipherParameters, IEncodable, ILmsContextBasedSigner
Inheritance
LmsPrivateKeyParameters
Implements
Inherited Members

Constructors

LmsPrivateKeyParameters(LMSigParameters, LMOtsParameters, int, byte[], int, byte[])

public LmsPrivateKeyParameters(LMSigParameters lmsParameter, LMOtsParameters otsParameters, int q, byte[] I, int maxQ, byte[] masterSecret)

Parameters

lmsParameter LMSigParameters
otsParameters LMOtsParameters
q int
I byte[]
maxQ int
masterSecret byte[]

Properties

IndexLimit

public int IndexLimit { get; }

Property Value

int

OtsParameters

public LMOtsParameters OtsParameters { get; }

Property Value

LMOtsParameters

SigParameters

public LMSigParameters SigParameters { get; }

Property Value

LMSigParameters

Methods

Equals(object)

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

public override bool Equals(object o)

Parameters

o object

Returns

bool

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

ExtractKeyShard(int)

public LmsPrivateKeyParameters ExtractKeyShard(int usageCount)

Parameters

usageCount int

Returns

LmsPrivateKeyParameters

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.

GetI()

public byte[] GetI()

Returns

byte[]

GetIndex()

public int GetIndex()

Returns

int

GetInstance(byte[], byte[])

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

Parameters

privEnc byte[]
pubEnc byte[]

Returns

LmsPrivateKeyParameters

GetInstance(object)

public static LmsPrivateKeyParameters GetInstance(object src)

Parameters

src object

Returns

LmsPrivateKeyParameters

GetMasterSecret()

public byte[] GetMasterSecret()

Returns

byte[]

GetOtsParameters()

[Obsolete("Use 'OtsParameters' instead")]
public LMOtsParameters GetOtsParameters()

Returns

LMOtsParameters

GetPublicKey()

public LmsPublicKeyParameters GetPublicKey()

Returns

LmsPublicKeyParameters

GetSigParameters()

[Obsolete("Use 'SigParameters' instead")]
public LMSigParameters GetSigParameters()

Returns

LMSigParameters

GetUsagesRemaining()

public long GetUsagesRemaining()

Returns

long