Top Fields Constructors Methods
org.bouncycastle.math.internal

public abstract Class Nat256

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.util.Pack

Field Summary

Modifier and TypeField and Description
private static final long
M

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
add(int[] x, int[] y, int[] z)

public static int
addBothTo(int[] x, int[] y, int[] z)

public static int
addTo(int[] x, int[] z)

public static int
addTo(int[] x, int xOff, int[] z, int zOff, int cIn)

public static int
addToEachOther(int[] u, int uOff, int[] v, int vOff)

public static void
copy(int[] x, int[] z)

public static void
copy(int[] x, int xOff, int[] z, int zOff)

public static void
copy64(long[] x, long[] z)

public static void
copy64(long[] x, int xOff, long[] z, int zOff)

public static int[]
public static long[]
public static int[]
public static long[]
public static boolean
diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)

public static boolean
eq(int[] x, int[] y)

public static boolean
eq64(long[] x, long[] y)

public static int[]
public static long[]
public static int
getBit(int[] x, int bit)

public static boolean
gte(int[] x, int[] y)

public static boolean
gte(int[] x, int xOff, int[] y, int yOff)

public static boolean
isOne(int[] x)

public static boolean
isOne64(long[] x)

public static boolean
isZero(int[] x)

public static boolean
isZero64(long[] x)

public static void
mul(int[] x, int[] y, int[] zz)

public static void
mul(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff)

public static long
mul33Add(int w, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)

public static int
mul33DWordAdd(int x, long y, int[] z, int zOff)

public static int
mul33WordAdd(int x, int y, int[] z, int zOff)

public static int
mulAddTo(int[] x, int[] y, int[] zz)

public static int
mulByWordAddTo(int x, int[] y, int[] z)

public static void
square(int[] x, int[] zz)

public static void
square(int[] x, int xOff, int[] zz, int zzOff)

public static int
sub(int[] x, int[] y, int[] z)

public static int
sub(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)

public static int
subFrom(int[] x, int[] z)

public static BigInteger
toBigInteger(int[] x)

public static BigInteger
toBigInteger64(long[] x)

public static void
zero(int[] z)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Mback to summary
private static final long M

Constructor Detail

Nat256back to summary
public Nat256()

Method Detail

addback to summary
public static int add(int[] x, int[] y, int[] z)
addBothToback to summary
public static int addBothTo(int[] x, int[] y, int[] z)
addToback to summary
public static int addTo(int[] x, int[] z)
addToback to summary
public static int addTo(int[] x, int xOff, int[] z, int zOff, int cIn)
addToEachOtherback to summary
public static int addToEachOther(int[] u, int uOff, int[] v, int vOff)
copyback to summary
public static void copy(int[] x, int[] z)
copyback to summary
public static void copy(int[] x, int xOff, int[] z, int zOff)
copy64back to summary
public static void copy64(long[] x, long[] z)
copy64back to summary
public static void copy64(long[] x, int xOff, long[] z, int zOff)
createback to summary
public static int[] create()
create64back to summary
public static long[] create64()
createExtback to summary
public static int[] createExt()
createExt64back to summary
public static long[] createExt64()
diffback to summary
public static boolean diff(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)
eqback to summary
public static boolean eq(int[] x, int[] y)
eq64back to summary
public static boolean eq64(long[] x, long[] y)
fromBigIntegerback to summary
public static int[] fromBigInteger(BigInteger x)
fromBigInteger64back to summary
public static long[] fromBigInteger64(BigInteger x)
getBitback to summary
public static int getBit(int[] x, int bit)
gteback to summary
public static boolean gte(int[] x, int[] y)
gteback to summary
public static boolean gte(int[] x, int xOff, int[] y, int yOff)
isOneback to summary
public static boolean isOne(int[] x)
isOne64back to summary
public static boolean isOne64(long[] x)
isZeroback to summary
public static boolean isZero(int[] x)
isZero64back to summary
public static boolean isZero64(long[] x)
mulback to summary
public static void mul(int[] x, int[] y, int[] zz)
mulback to summary
public static void mul(int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff)
mul33Addback to summary
public static long mul33Add(int w, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)
mul33DWordAddback to summary
public static int mul33DWordAdd(int x, long y, int[] z, int zOff)
mul33WordAddback to summary
public static int mul33WordAdd(int x, int y, int[] z, int zOff)
mulAddToback to summary
public static int mulAddTo(int[] x, int[] y, int[] zz)
mulByWordAddToback to summary
public static int mulByWordAddTo(int x, int[] y, int[] z)
squareback to summary
public static void square(int[] x, int[] zz)
squareback to summary
public static void square(int[] x, int xOff, int[] zz, int zzOff)
subback to summary
public static int sub(int[] x, int[] y, int[] z)
subback to summary
public static int sub(int[] x, int xOff, int[] y, int yOff, int[] z, int zOff)
subFromback to summary
public static int subFrom(int[] x, int[] z)
toBigIntegerback to summary
public static BigInteger toBigInteger(int[] x)
toBigInteger64back to summary
public static BigInteger toBigInteger64(long[] x)
zeroback to summary
public static void zero(int[] z)