| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | |
| private static final byte[] | |
| private static final int[] | |
| private static final ECPoint[] | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int[] | |
| public static int[] | |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | Returns: The Window NAF of the given width, such that the following holds:k = ∑i=0l-1 ki2i
, where the ki denote the elements of the
returned byte[].The width width, BigInteger w of the Window NAF. The width is
defined as the minimal number w, such that for any
w consecutive digits in the resulting representation, at
most one is non-zero.The integer of which the Window NAF is computed. k)Computes the Window NAF (non-adjacent Form) of an integer. |
| public static int | |
| public static int | Returns: the window size to usethe bit-length of the scalar to multiply by bits)Determine window width to use for a scalar multiplication of the given size. |
| public static int | Returns: the window size to usethe bit-length of the scalar to multiply by bits, int[] a monotonically increasing list of bit sizes at which to increment the window width windowSizeCutoffs)Determine window width to use for a scalar multiplication of the given size. |
| public static WNafPreCompInfo | |
| public static WNafPreCompInfo | |
| public static ECPoint | mapPointWithPrecomp(ECPoint p, final int width, final boolean includeNegated, final ECPointMap pointMap)
|
| public static WNafPreCompInfo | |
| private static ECPoint[] | |
| private static byte[] | |
| private static int[] |
| DEFAULT_WINDOW_SIZE_CUTOFFS | back to summary |
|---|---|
| private static final int[] DEFAULT_WINDOW_SIZE_CUTOFFS | |
| EMPTY_BYTES | back to summary |
|---|---|
| private static final byte[] EMPTY_BYTES | |
| EMPTY_INTS | back to summary |
|---|---|
| private static final int[] EMPTY_INTS | |
| EMPTY_POINTS | back to summary |
|---|---|
| private static final ECPoint[] EMPTY_POINTS | |
| PRECOMP_NAME | back to summary |
|---|---|
| public static final String PRECOMP_NAME | |
| WNafUtil | back to summary |
|---|---|
| public WNafUtil() | |
| generateCompactNaf | back to summary |
|---|---|
| public static int[] generateCompactNaf(BigInteger k) | |
| generateCompactWindowNaf | back to summary |
|---|---|
| public static int[] generateCompactWindowNaf(int width, BigInteger k) | |
| generateJSF | back to summary |
|---|---|
| public static byte[] generateJSF(BigInteger g, BigInteger h) | |
| generateNaf | back to summary |
|---|---|
| public static byte[] generateNaf(BigInteger k) | |
| generateWindowNaf | back to summary |
|---|---|
| public static byte[] generateWindowNaf(int width, BigInteger k) Computes the Window NAF (non-adjacent Form) of an integer.
| |
| getNafWeight | back to summary |
|---|---|
| public static int getNafWeight(BigInteger k) | |
| getWindowSize | back to summary |
|---|---|
| public static int getWindowSize(int bits) Determine window width to use for a scalar multiplication of the given size.
| |
| getWindowSize | back to summary |
|---|---|
| public static int getWindowSize(int bits, int[] windowSizeCutoffs) Determine window width to use for a scalar multiplication of the given size.
| |
| getWNafPreCompInfo | back to summary |
|---|---|
| public static WNafPreCompInfo getWNafPreCompInfo(ECPoint p) | |
| getWNafPreCompInfo | back to summary |
|---|---|
| public static WNafPreCompInfo getWNafPreCompInfo(PreCompInfo preCompInfo) | |
| mapPointWithPrecomp | back to summary |
|---|---|
| public static ECPoint mapPointWithPrecomp(ECPoint p, final int width, final boolean includeNegated, final ECPointMap pointMap) | |
| precompute | back to summary |
|---|---|
| public static WNafPreCompInfo precompute(final ECPoint p, final int width, final boolean includeNegated) | |
| resizeTable | back to summary |
|---|---|
| private static ECPoint[] resizeTable(ECPoint[] a, int length) | |
| trim | back to summary |
|---|---|
| private static byte[] trim(byte[] a, int length) | |
| trim | back to summary |
|---|---|
| private static int[] trim(int[] a, int length) | |