Table of Contents

Class LMOts

Namespace
Org.BouncyCastle.Pqc.Crypto.Lms
Assembly
BouncyCastle.Cryptography.dll
public static class LMOts
Inheritance
LMOts
Inherited Members

Methods

Cksm(byte[], int, LMOtsParameters)

public static int Cksm(byte[] S, int sLen, LMOtsParameters parameters)

Parameters

S byte[]
sLen int
parameters LMOtsParameters

Returns

int

Coef(byte[], int, int)

public static int Coef(byte[] S, int i, int w)

Parameters

S byte[]
i int
w int

Returns

int

LMOtsGenerateSignature(LMOtsPrivateKey, byte[], byte[])

public static LMOtsSignature LMOtsGenerateSignature(LMOtsPrivateKey privateKey, byte[] Q, byte[] C)

Parameters

privateKey LMOtsPrivateKey
Q byte[]
C byte[]

Returns

LMOtsSignature

LMOtsValidateSignature(LMOtsPublicKey, LMOtsSignature, byte[], bool)

public static bool LMOtsValidateSignature(LMOtsPublicKey publicKey, LMOtsSignature signature, byte[] message, bool prehashed)

Parameters

publicKey LMOtsPublicKey
signature LMOtsSignature
message byte[]
prehashed bool

Returns

bool

LMOtsValidateSignatureCalculate(LMOtsPublicKey, LMOtsSignature, byte[])

public static byte[] LMOtsValidateSignatureCalculate(LMOtsPublicKey publicKey, LMOtsSignature signature, byte[] message)

Parameters

publicKey LMOtsPublicKey
signature LMOtsSignature
message byte[]

Returns

byte[]

LMOtsValidateSignatureCalculate(LmsContext)

public static byte[] LMOtsValidateSignatureCalculate(LmsContext context)

Parameters

context LmsContext

Returns

byte[]

LmsOtsGeneratePublicKey(LMOtsPrivateKey)

public static LMOtsPublicKey LmsOtsGeneratePublicKey(LMOtsPrivateKey privateKey)

Parameters

privateKey LMOtsPrivateKey

Returns

LMOtsPublicKey

lm_ots_generate_signature(LMSigParameters, LMOtsPrivateKey, byte[][], byte[], bool)

public static LMOtsSignature lm_ots_generate_signature(LMSigParameters sigParams, LMOtsPrivateKey privateKey, byte[][] path, byte[] message, bool preHashed)

Parameters

sigParams LMSigParameters
privateKey LMOtsPrivateKey
path byte[][]
message byte[]
preHashed bool

Returns

LMOtsSignature