Public Member Functions |
|
| Integer (const Integer &t) |
|
| Integer (signed long value) |
|
| Integer (Sign s, word highWord, word lowWord) |
|
| Integer (Source &) |
|
| Integer (const byte *encodedInteger, unsigned int byteCount, Signedness s=UNSIGNED) |
|
Integer & | Ref () |
|
| Integer (RandomNumberGenerator &rng, const Integer &min, const Integer &max) |
|
unsigned int | MinEncodedSize (Signedness=UNSIGNED) const |
|
unsigned int | Encode (byte *output, unsigned int outputLen, Signedness=UNSIGNED) const |
|
void | Decode (const byte *input, unsigned int inputLen, Signedness=UNSIGNED) |
|
void | Decode (Source &) |
|
bool | IsConvertableToLong () const |
|
signed long | ConvertToLong () const |
|
unsigned int | BitCount () const |
|
unsigned int | ByteCount () const |
|
unsigned int | WordCount () const |
|
bool | GetBit (unsigned int i) const |
|
byte | GetByte (unsigned int i) const |
|
unsigned long | GetBits (unsigned int i, unsigned int n) const |
|
bool | IsZero () const |
|
bool | NotZero () const |
|
bool | IsNegative () const |
|
bool | NotNegative () const |
|
bool | IsPositive () const |
|
bool | NotPositive () const |
|
bool | IsEven () const |
|
bool | IsOdd () const |
|
Integer & | operator= (const Integer &t) |
|
Integer & | operator+= (const Integer &t) |
|
Integer & | operator-= (const Integer &t) |
|
Integer & | operator*= (const Integer &t) |
|
Integer & | operator/= (const Integer &t) |
|
Integer & | operator%= (const Integer &t) |
|
Integer & | operator/= (word t) |
|
Integer & | operator%= (word t) |
|
Integer & | operator<<= (unsigned int) |
|
Integer & | operator>>= (unsigned int) |
|
void | Randomize (RandomNumberGenerator &rng, unsigned int bitcount) |
|
void | Randomize (RandomNumberGenerator &rng, const Integer &min, const Integer &max) |
|
void | SetBit (unsigned int n, bool value=1) |
|
void | SetByte (unsigned int n, byte value) |
|
void | Negate () |
|
void | SetPositive () |
|
void | SetNegative () |
|
void | Swap (Integer &a) |
|
bool | operator! () const |
|
Integer | operator+ () const |
|
Integer | operator- () const |
|
Integer & | operator++ () |
|
Integer & | operator-- () |
|
Integer | operator++ (int) |
|
Integer | operator-- (int) |
|
int | Compare (const Integer &a) const |
|
Integer | Plus (const Integer &b) const |
|
Integer | Minus (const Integer &b) const |
|
Integer | Times (const Integer &b) const |
|
Integer | DividedBy (const Integer &b) const |
|
Integer | Modulo (const Integer &b) const |
|
Integer | DividedBy (word b) const |
|
word | Modulo (word b) const |
|
Integer | operator>> (unsigned int n) const |
|
Integer | operator<< (unsigned int n) const |
|
Integer | AbsoluteValue () const |
|
Integer | Doubled () const |
|
Integer | Squared () const |
|
Integer | SquareRoot () const |
|
bool | IsSquare () const |
|
bool | IsUnit () const |
|
Integer | MultiplicativeInverse () const |
|
Integer | InverseMod (const Integer &n) const |
|
word | InverseMod (word n) const |
Friends |
|
class | ModularArithmetic |
|
class | MontgomeryRepresentation |
|
Integer | a_times_b_mod_c (const Integer &x, const Integer &y, const Integer &m) |
|
Integer | a_exp_b_mod_c (const Integer &x, const Integer &e, const Integer &m) |
|
void | PositiveAdd (Integer &sum, const Integer &a, const Integer &b) |
|
void | PositiveSubtract (Integer &diff, const Integer &a, const Integer &b) |
|
void | PositiveMultiply (Integer &product, const Integer &a, const Integer &b) |
|
void | PositiveDivide (Integer &remainder, Integer "ient, const Integer ÷nd, const Integer &divisor) |
Definition at line 123 of file integer.hpp.