public class BIG
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BIGBITS |
static long |
BMASK |
static int |
CHUNK |
static int |
DNLEN |
static int |
HBITS |
static long |
HMASK |
static int |
NEXCESS |
static int |
NLEN |
protected long[] |
w |
| Constructor and Description |
|---|
BIG() |
BIG(BIG x) |
BIG(DBIG x) |
BIG(int x) |
BIG(long[] x) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(BIG x) |
int |
bit(int n) |
static long |
cast_to_chunk(int x) |
long |
cmove(BIG g,
int d) |
static int |
comp(BIG a,
BIG b) |
void |
copy(BIG x) |
void |
copy(DBIG x) |
long |
cswap(BIG b,
int d) |
void |
ctdiv(BIG m,
int bd) |
void |
ctmod(BIG m,
int bd) |
void |
dec(int x) |
void |
div(BIG m) |
int |
div3() |
static BIG |
frombytearray(byte[] b,
int n) |
static BIG |
fromBytes(byte[] b) |
int |
fshl(int k) |
int |
fshr(int k) |
long |
get(int i) |
void |
imul(int c) |
void |
inc(int x) |
void |
incl(long x) |
static int |
invmod256(int a) |
void |
invmod2m() |
void |
invmodp(BIG p) |
boolean |
isunity() |
boolean |
iszilch() |
int |
jacobi(BIG p) |
int |
lastbits(int n) |
BIG |
minus(BIG x) |
void |
mod(BIG m) |
void |
mod2m(int m) |
static BIG |
modadd(BIG a1,
BIG b1,
BIG m) |
static BIG |
modmul(BIG a1,
BIG b1,
BIG m) |
static BIG |
modneg(BIG a1,
BIG m) |
static BIG |
modsqr(BIG a1,
BIG m) |
static DBIG |
mul(BIG a,
BIG b) |
static long[] |
muladd(long a,
long b,
long c,
long r) |
int |
nbits() |
long |
norm() |
void |
one() |
void |
or(BIG x) |
int |
parity() |
BIG |
plus(BIG x) |
long |
pmul(int c) |
BIG |
powmod(BIG e1,
BIG m) |
DBIG |
pxmul(int c) |
static BIG |
random(RAND rng) |
static BIG |
randomnum(BIG q,
RAND rng) |
static BIG |
randtrunc(BIG q,
int trunc,
RAND rng) |
void |
rsub(BIG x) |
void |
set(int i,
long x) |
void |
shl(int k) |
void |
shr(int k) |
static BIG |
smul(BIG a,
BIG b) |
static DBIG |
sqr(BIG a) |
static int |
ssn(BIG r,
BIG a,
BIG m) |
void |
sub(BIG x) |
void |
tobytearray(byte[] b,
int n) |
void |
toBytes(byte[] b) |
java.lang.String |
toRawString() |
java.lang.String |
toString() |
void |
xortop(long x) |
void |
zero() |
public static final int CHUNK
public static final int NLEN
public static final int DNLEN
public static final long BMASK
public static final int HBITS
public static final long HMASK
public static final int NEXCESS
public static final int BIGBITS
protected long[] w
public BIG()
public BIG(int x)
public BIG(BIG x)
public BIG(DBIG x)
public BIG(long[] x)
public long get(int i)
public void set(int i,
long x)
public long cswap(BIG b, int d)
public long cmove(BIG g, int d)
public static long cast_to_chunk(int x)
public long norm()
public int nbits()
public java.lang.String toRawString()
public java.lang.String toString()
toString in class java.lang.Objectpublic static long[] muladd(long a,
long b,
long c,
long r)
public long pmul(int c)
public DBIG pxmul(int c)
public int div3()
public boolean iszilch()
public boolean isunity()
public void xortop(long x)
public void mod2m(int m)
public int bit(int n)
public int fshr(int k)
public int fshl(int k)
public void zero()
public void one()
public void copy(BIG x)
public void copy(DBIG x)
public void shr(int k)
public void shl(int k)
public void add(BIG x)
public void or(BIG x)
public void inc(int x)
public void incl(long x)
public void sub(BIG x)
public void rsub(BIG x)
public void dec(int x)
public void imul(int c)
public void tobytearray(byte[] b,
int n)
public static BIG frombytearray(byte[] b, int n)
public void toBytes(byte[] b)
public static BIG fromBytes(byte[] b)
public static int invmod256(int a)
public void invmod2m()
public void ctmod(BIG m, int bd)
public void mod(BIG m)
public void ctdiv(BIG m, int bd)
public void div(BIG m)
public int parity()
public int lastbits(int n)
public int jacobi(BIG p)
public void invmodp(BIG p)