Class WNafUtilities
- Namespace
- Enterprises.Org.BouncyCastle.Math.EC.Multiplier
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public abstract class WNafUtilities
- Inheritance
-
WNafUtilities
- Inherited Members
-
Constructors
WNafUtilities()
protected WNafUtilities()
Fields
PRECOMP_NAME
public static readonly string PRECOMP_NAME
Field Value
- string
Methods
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(IPreCompInfo)
public static WNafPreCompInfo GetWNafPreCompInfo(IPreCompInfo preCompInfo)
Parameters
preCompInfo IPreCompInfo
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[] windowSizeCutoffs)
Parameters
bits int
windowSizeCutoffs int[]
Returns
- int
MapPointWithPrecomp(ECPoint, int, bool, IECPointMap)
public static ECPoint MapPointWithPrecomp(ECPoint p, int width, bool includeNegated, IECPointMap pointMap)
Parameters
p ECPoint
width int
includeNegated bool
pointMap IECPointMap
Returns
- ECPoint
Precompute(ECPoint, int, bool)
public static WNafPreCompInfo Precompute(ECPoint p, int width, bool includeNegated)
Parameters
p ECPoint
width int
includeNegated bool
Returns
- WNafPreCompInfo