#include <INT.H>
Public Member Functions | |
| Int (void) | |
| Int (unsigned long value) | |
| void | Randomize (Straw &rng, int bitcount) |
| void | Randomize (Straw &rng, const Int &minval, const Int &maxval) |
| operator digit * () | |
| operator const digit * () const | |
| bool | operator[] (unsigned bit) const |
| Int & | operator++ (void) |
| Int & | operator-- (void) |
| int | operator! (void) const |
| Int | operator~ (void) |
| Int | operator- (void) const |
| int | ByteCount (void) const |
| int | BitCount (void) const |
| bool | Is_Negative (void) const |
| unsigned | MaxBitPrecision () const |
| bool | IsSmallPrime (void) const |
| bool | SmallDivisorsTest (void) const |
| bool | FermatTest (unsigned rounds) const |
| bool | IsPrime (void) const |
| bool | RabinMillerTest (Straw &rng, unsigned int rounds) const |
| Int & | operator+= (const Int &number) |
| Int & | operator-= (const Int &number) |
| Int & | operator*= (const Int &multiplier) |
| Int & | operator/= (const Int &t) |
| Int & | operator%= (const Int &t) |
| Int & | operator<<= (int bits) |
| Int & | operator>>= (int bits) |
| Int | operator+ (const Int &number) const |
| Int | operator+ (unsigned short b) const |
| Int | operator- (const Int &number) const |
| Int | operator- (unsigned short b) const |
| Int | operator* (const Int &multiplier) const |
| Int | operator* (unsigned short b) const |
| Int | operator/ (const Int &divisor) const |
| Int | operator/ (unsigned long b) const |
| Int | operator/ (unsigned short divisor) const |
| Int | operator% (const Int &divisor) const |
| Int | operator% (unsigned long b) const |
| unsigned short | operator% (unsigned short divisor) const |
| Int | operator>> (int bits) const |
| Int | operator<< (int bits) const |
| int | operator== (const Int &b) const |
| int | operator!= (const Int &b) const |
| int | operator> (const Int &number) const |
| int | operator>= (const Int &number) const |
| int | operator< (const Int &number) const |
| int | operator<= (const Int &number) const |
| void | Negate (void) |
| Int | Abs (void) |
| Int | exp_b_mod_c (const Int &e, const Int &m) const |
| void | Set_Bit (int index) |
| Int | Inverse (const Int &modulus) const |
| int | Encode (unsigned char *output) const |
| int | Encode (unsigned char *output, unsigned length) const |
| void | Signed_Decode (const unsigned char *from, int frombytes) |
| void | Unsigned_Decode (const unsigned char *from, int frombytes) |
| int | DEREncode (unsigned char *output) const |
| void | DERDecode (const unsigned char *input) |
Static Public Member Functions | |
| static Int | Unsigned_Mult (Int const &multiplicand, Int const &multiplier) |
| static void | Unsigned_Divide (Int &remainder, Int "ient, const Int ÷nd, const Int &divisor) |
| static void | Signed_Divide (Int &remainder, Int "ient, const Int ÷nd, const Int &divisor) |
| static Int | Decode_ASCII (char const *string) |
Public Attributes | ||
| unsigned long | Long | |
| struct { | ||
| unsigned char C3 | ||
| unsigned char C2 | ||
| unsigned char C1 | ||
| unsigned char C0 | ||
| } | Char | |
| digit | reg [PRECISION] | |
| struct { | ||
| unsigned char C3 | ||
| unsigned char C2 | ||
| unsigned char C1 | ||
| unsigned char C0 | ||
| } | Char | |
Static Public Attributes | |
| static int | Error |
| static bool | Carry |
| static bool | Borrow |
| static Int | Remainder |
Friends | |
| struct | RemainderTable< Int< PRECISION > > |
| Int< PRECISION > Gcd | FN_TEMPLATE (const Int< PRECISION > &, const Int< PRECISION > &) |
Definition at line 55 of file blowfish.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
| unsigned char Int< PRECISION >::C0 |
Definition at line 61 of file blowfish.cpp.
| unsigned char Int< PRECISION >::C1 |
Definition at line 60 of file blowfish.cpp.
| unsigned char Int< PRECISION >::C2 |
Definition at line 59 of file blowfish.cpp.
| unsigned char Int< PRECISION >::C3 |
Definition at line 58 of file blowfish.cpp.
| unsigned long Int< PRECISION >::Long |
Definition at line 56 of file blowfish.cpp.