Package org.gudy.bouncycastle.math.ec
Class IntArray
- java.lang.Object
-
- org.gudy.bouncycastle.math.ec.IntArray
-
class IntArray extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
m_ints
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addShifted(IntArray other, int shift)
int
bitLength()
java.lang.Object
clone()
boolean
equals(java.lang.Object o)
void
flipBit(int n)
int
getLength()
int
getUsedLength()
int
hashCode()
boolean
isZero()
IntArray
multiply(IntArray other, int m)
void
reduce(int m, int[] redPol)
private int[]
resizedInts(int newLen)
void
setBit(int n)
void
shiftLeft()
IntArray
shiftLeft(int n)
IntArray
square(int m)
boolean
testBit(int n)
java.math.BigInteger
toBigInteger()
java.lang.String
toString()
-
-
-
Method Detail
-
isZero
public boolean isZero()
-
getUsedLength
public int getUsedLength()
-
bitLength
public int bitLength()
-
resizedInts
private int[] resizedInts(int newLen)
-
toBigInteger
public java.math.BigInteger toBigInteger()
-
shiftLeft
public void shiftLeft()
-
shiftLeft
public IntArray shiftLeft(int n)
-
addShifted
public void addShifted(IntArray other, int shift)
-
getLength
public int getLength()
-
testBit
public boolean testBit(int n)
-
flipBit
public void flipBit(int n)
-
setBit
public void setBit(int n)
-
reduce
public void reduce(int m, int[] redPol)
-
square
public IntArray square(int m)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-