All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----cryptix.math.BigNum
|
+----cryptix.math.BigInteger
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
public static final BigInteger zero
public static final BigInteger one
public BigInteger()
public BigInteger(int from)
public BigInteger(BigInteger from)
public BigInteger(String hexString)
public BigInteger(byte buffer[])
public int bitLength()
public Object clone()
public void copy(Object src)
public BigInteger assign(BigInteger n)
public BigInteger assign(int n)
public void fromString(String inHex)
public String toString()
protected void finalize()
public BigInteger modExp(BigInteger power,
BigInteger modulo)
public BigInteger inverseModN(BigInteger a,
BigInteger n)
public BigInteger mod(BigInteger a,
BigInteger b)
public BigInteger mul(BigInteger a,
BigInteger b)
public BigInteger div(BigInteger a,
BigInteger b)
public BigInteger add(BigInteger a,
BigInteger b)
public BigInteger add(int a)
public BigInteger sub(BigInteger a,
BigInteger b)
public BigInteger gcd(BigNum a,
BigNum b)
public int cmp(BigInteger a)
public boolean equals(Object o)
Note: since BigIntegers are mutable, it was a mistake to override
equals. Also, equals and hashCode should
always be overridden together.
public BigInteger inc()
public BigInteger dec()
public BigInteger shiftLeft(int n)
public BigInteger shiftRight(int n)
public static BigInteger zero()
protected static byte[] newBuffer(int bitLen)
public byte[] toByteArray()
public void fromByteArray(byte buf[])
public BigInteger toJavaMathBigInteger()
public static BigInteger fromJavaMathBigInteger(BigInteger from)
public static void main(String args[])
public static void self_test(PrintWriter out) throws Exception
All Packages Class Hierarchy This Package Previous Next Index