Package org.bouncycastle.math.internal
Class Nat
java.lang.Object
org.bouncycastle.math.internal.Nat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
add
(int len, int[] x, int[] y, int[] z) static int
add33To
(int len, int x, int[] z) static int
addBothTo
(int len, int[] x, int[] y, int[] z) static int
addBothTo
(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) static int
addTo
(int len, int[] x, int[] z) static int
addTo
(int len, int[] x, int xOff, int[] z, int zOff) static int
addWordAt
(int len, int x, int[] z, int zPos) static int
addWordTo
(int len, int x, int[] z) static int[]
copy
(int len, int[] x) static void
copy
(int len, int[] x, int[] z) static void
copy
(int len, int[] x, int xOff, int[] z, int zOff) static int[]
create
(int len) static long[]
create64
(int len) static int
dec
(int len, int[] z) static int
decAt
(int len, int[] z, int zPos) static boolean
eq
(int len, int[] x, int[] y) static int[]
fromBigInteger
(int bits, BigInteger x) static int
getBit
(int[] x, int bit) static boolean
gte
(int len, int[] x, int[] y) static int
inc
(int len, int[] z) static int
inc
(int len, int[] x, int[] z) static int
incAt
(int len, int[] z, int zPos) static int
incAt
(int len, int[] z, int zOff, int zPos) static boolean
isOne
(int len, int[] x) static boolean
isZero
(int len, int[] x) static void
mul
(int len, int[] x, int[] y, int[] zz) static void
mul
(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) static int
mul31BothAdd
(int len, int a, int[] x, int b, int[] y, int[] z, int zOff) static int
mulAddTo
(int len, int[] x, int[] y, int[] zz) static int
mulAddTo
(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) static int
mulWord
(int len, int x, int[] y, int[] z) static int
mulWord
(int len, int x, int[] y, int yOff, int[] z, int zOff) static int
mulWordAddTo
(int len, int x, int[] y, int yOff, int[] z, int zOff) static int
shiftDownBit
(int len, int[] z, int c) static int
shiftDownBit
(int len, int[] z, int zOff, int c) static int
shiftDownBit
(int len, int[] x, int c, int[] z) static int
shiftDownBit
(int len, int[] x, int xOff, int c, int[] z, int zOff) static int
shiftDownBits
(int len, int[] z, int bits, int c) static int
shiftDownBits
(int len, int[] x, int xOff, int bits, int c, int[] z, int zOff) static int
shiftDownWord
(int len, int[] z, int c) static int
shiftUpBit
(int len, int[] x, int c, int[] z) static int
shiftUpBit
(int len, int[] x, int xOff, int c, int[] z, int zOff) static long
shiftUpBit64
(int len, long[] x, int xOff, long c, long[] z, int zOff) static int
shiftUpBits
(int len, int[] z, int bits, int c) static int
shiftUpBits
(int len, int[] z, int zOff, int bits, int c) static int
shiftUpBits
(int len, int[] x, int bits, int c, int[] z) static int
shiftUpBits
(int len, int[] x, int xOff, int bits, int c, int[] z, int zOff) static long
shiftUpBits64
(int len, long[] z, int zOff, int bits, long c) static long
shiftUpBits64
(int len, long[] x, int xOff, int bits, long c, long[] z, int zOff) static int
sub
(int len, int[] x, int[] y, int[] z) static int
sub33From
(int len, int x, int[] z) static int
subFrom
(int len, int[] x, int[] z) static int
subFrom
(int len, int[] x, int xOff, int[] z, int zOff) static int
subWordFrom
(int len, int x, int[] z) static BigInteger
toBigInteger
(int len, int[] x) static void
zero
(int len, int[] z) static void
zero64
(int len, long[] z)
-
Constructor Details
-
Nat
public Nat()
-
-
Method Details
-
add
public static int add(int len, int[] x, int[] y, int[] z) -
add33To
public static int add33To(int len, int x, int[] z) -
addBothTo
public static int addBothTo(int len, int[] x, int[] y, int[] z) -
addBothTo
public static int addBothTo(int len, int[] x, int xOff, int[] y, int yOff, int[] z, int zOff) -
addTo
public static int addTo(int len, int[] x, int[] z) -
addTo
public static int addTo(int len, int[] x, int xOff, int[] z, int zOff) -
addWordAt
public static int addWordAt(int len, int x, int[] z, int zPos) -
addWordTo
public static int addWordTo(int len, int x, int[] z) -
copy
public static int[] copy(int len, int[] x) -
copy
public static void copy(int len, int[] x, int[] z) -
copy
public static void copy(int len, int[] x, int xOff, int[] z, int zOff) -
create
public static int[] create(int len) -
create64
public static long[] create64(int len) -
dec
public static int dec(int len, int[] z) -
decAt
public static int decAt(int len, int[] z, int zPos) -
eq
public static boolean eq(int len, int[] x, int[] y) -
fromBigInteger
-
getBit
public static int getBit(int[] x, int bit) -
gte
public static boolean gte(int len, int[] x, int[] y) -
inc
public static int inc(int len, int[] z) -
inc
public static int inc(int len, int[] x, int[] z) -
incAt
public static int incAt(int len, int[] z, int zPos) -
incAt
public static int incAt(int len, int[] z, int zOff, int zPos) -
isOne
public static boolean isOne(int len, int[] x) -
isZero
public static boolean isZero(int len, int[] x) -
mul
public static void mul(int len, int[] x, int[] y, int[] zz) -
mul
public static void mul(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) -
mulAddTo
public static int mulAddTo(int len, int[] x, int[] y, int[] zz) -
mulAddTo
public static int mulAddTo(int len, int[] x, int xOff, int[] y, int yOff, int[] zz, int zzOff) -
mul31BothAdd
public static int mul31BothAdd(int len, int a, int[] x, int b, int[] y, int[] z, int zOff) -
mulWord
public static int mulWord(int len, int x, int[] y, int[] z) -
mulWord
public static int mulWord(int len, int x, int[] y, int yOff, int[] z, int zOff) -
mulWordAddTo
public static int mulWordAddTo(int len, int x, int[] y, int yOff, int[] z, int zOff) -
shiftDownBit
public static int shiftDownBit(int len, int[] z, int c) -
shiftDownBit
public static int shiftDownBit(int len, int[] z, int zOff, int c) -
shiftDownBit
public static int shiftDownBit(int len, int[] x, int c, int[] z) -
shiftDownBit
public static int shiftDownBit(int len, int[] x, int xOff, int c, int[] z, int zOff) -
shiftDownBits
public static int shiftDownBits(int len, int[] z, int bits, int c) -
shiftDownBits
public static int shiftDownBits(int len, int[] x, int xOff, int bits, int c, int[] z, int zOff) -
shiftDownWord
public static int shiftDownWord(int len, int[] z, int c) -
shiftUpBit
public static int shiftUpBit(int len, int[] x, int c, int[] z) -
shiftUpBit
public static int shiftUpBit(int len, int[] x, int xOff, int c, int[] z, int zOff) -
shiftUpBit64
public static long shiftUpBit64(int len, long[] x, int xOff, long c, long[] z, int zOff) -
shiftUpBits
public static int shiftUpBits(int len, int[] z, int bits, int c) -
shiftUpBits
public static int shiftUpBits(int len, int[] z, int zOff, int bits, int c) -
shiftUpBits64
public static long shiftUpBits64(int len, long[] z, int zOff, int bits, long c) -
shiftUpBits
public static int shiftUpBits(int len, int[] x, int bits, int c, int[] z) -
shiftUpBits
public static int shiftUpBits(int len, int[] x, int xOff, int bits, int c, int[] z, int zOff) -
shiftUpBits64
public static long shiftUpBits64(int len, long[] x, int xOff, int bits, long c, long[] z, int zOff) -
sub
public static int sub(int len, int[] x, int[] y, int[] z) -
sub33From
public static int sub33From(int len, int x, int[] z) -
subFrom
public static int subFrom(int len, int[] x, int[] z) -
subFrom
public static int subFrom(int len, int[] x, int xOff, int[] z, int zOff) -
subWordFrom
public static int subWordFrom(int len, int x, int[] z) -
toBigInteger
-
zero
public static void zero(int len, int[] z) -
zero64
public static void zero64(int len, long[] z)
-