Table of Contents

Class WNafUtilities

Namespace
Org.BouncyCastle.Math.EC.Multiplier
Assembly
BouncyCastle.Cryptography.dll
public abstract class WNafUtilities
Inheritance
WNafUtilities
Inherited Members

Fields

PRECOMP_NAME

public static readonly string PRECOMP_NAME

Field Value

string

Methods

ConfigureBasepoint(ECPoint)

public static void ConfigureBasepoint(ECPoint p)

Parameters

p ECPoint

GenerateCompactNaf(BigInteger)

public static int[] GenerateCompactNaf(BigInteger k)

Parameters

k BigInteger

Returns

int[]

GenerateCompactWindowNaf(int, BigInteger)

public static int[] GenerateCompactWindowNaf(int width, BigInteger k)

Parameters

width int
k BigInteger

Returns

int[]

GenerateJsf(BigInteger, BigInteger)

public static byte[] GenerateJsf(BigInteger g, BigInteger h)

Parameters

g BigInteger
h BigInteger

Returns

byte[]

GenerateNaf(BigInteger)

public static byte[] GenerateNaf(BigInteger k)

Parameters

k BigInteger

Returns

byte[]

GenerateWindowNaf(int, BigInteger)

public static byte[] GenerateWindowNaf(int width, BigInteger k)

Parameters

width int
k BigInteger

Returns

byte[]

GetNafWeight(BigInteger)

public static int GetNafWeight(BigInteger k)

Parameters

k BigInteger

Returns

int

GetWNafPreCompInfo(ECPoint)

public static WNafPreCompInfo GetWNafPreCompInfo(ECPoint p)

Parameters

p ECPoint

Returns

WNafPreCompInfo

GetWNafPreCompInfo(PreCompInfo)

public static WNafPreCompInfo GetWNafPreCompInfo(PreCompInfo preCompInfo)

Parameters

preCompInfo PreCompInfo

Returns

WNafPreCompInfo

GetWindowSize(int)

public static int GetWindowSize(int bits)

Parameters

bits int

Returns

int

GetWindowSize(int, int)

public static int GetWindowSize(int bits, int maxWidth)

Parameters

bits int
maxWidth int

Returns

int

GetWindowSize(int, int[])

public static int GetWindowSize(int bits, int[] windowSizeCutoffs)

Parameters

bits int
windowSizeCutoffs int[]

Returns

int

GetWindowSize(int, int[], int)

public static int GetWindowSize(int bits, int[] windowSizeCutoffs, int maxWidth)

Parameters

bits int
windowSizeCutoffs int[]
maxWidth int

Returns

int

Precompute(ECPoint, int, bool)

public static WNafPreCompInfo Precompute(ECPoint p, int minWidth, bool includeNegated)

Parameters

p ECPoint
minWidth int
includeNegated bool

Returns

WNafPreCompInfo

PrecomputeWithPointMap(ECPoint, ECPointMap, WNafPreCompInfo, bool)

public static WNafPreCompInfo PrecomputeWithPointMap(ECPoint p, ECPointMap pointMap, WNafPreCompInfo fromWNaf, bool includeNegated)

Parameters

p ECPoint
pointMap ECPointMap
fromWNaf WNafPreCompInfo
includeNegated bool

Returns

WNafPreCompInfo