libHSPlasma
|
#include <pnBigInteger.h>
Public Member Functions | |
pnBigInteger () | |
pnBigInteger (const pnBigInteger &init) | |
pnBigInteger (unsigned int init) | |
pnBigInteger (const unsigned char *data, size_t count, bool littleEndian=true) | |
~pnBigInteger () | |
pnBigInteger & | operator= (const pnBigInteger &init) |
pnBigInteger & | operator= (unsigned int init) |
void | set (const pnBigInteger &init) |
void | set (unsigned int init) |
void | set (const unsigned char *data, size_t count, bool littleEndian=true) |
void | setBit (size_t bit, bool on) |
size_t | getByteSize () const |
size_t | getBitSize () const |
void | getData (unsigned char *data, size_t bytes, bool littleEndian=true) const |
bool | getBit (size_t bit) const |
bool | operator== (const pnBigInteger &num) const |
bool | operator== (unsigned int num) const |
bool | operator!= (const pnBigInteger &num) const |
bool | operator!= (unsigned int num) const |
bool | operator< (const pnBigInteger &num) const |
bool | operator< (unsigned int num) const |
bool | operator> (const pnBigInteger &num) const |
bool | operator> (unsigned int num) const |
bool | operator<= (const pnBigInteger &num) const |
bool | operator<= (unsigned int num) const |
bool | operator>= (const pnBigInteger &num) const |
bool | operator>= (unsigned int num) const |
pnBigInteger & | operator++ () |
pnBigInteger & | operator-- () |
pnBigInteger | operator+ (const pnBigInteger &num) const |
pnBigInteger | operator- (const pnBigInteger &num) const |
pnBigInteger | operator* (const pnBigInteger &num) const |
pnBigInteger | operator/ (const pnBigInteger &num) const |
pnBigInteger | operator% (const pnBigInteger &num) const |
pnBigInteger | operator+ (unsigned int num) const |
pnBigInteger | operator- (unsigned int num) const |
pnBigInteger | operator* (unsigned int num) const |
pnBigInteger | operator/ (unsigned int num) const |
pnBigInteger | operator% (unsigned int num) const |
pnBigInteger | operator<< (size_t amt) const |
pnBigInteger | operator>> (size_t amt) const |
pnBigInteger & | operator+= (const pnBigInteger &num) |
pnBigInteger & | operator-= (const pnBigInteger &num) |
pnBigInteger & | operator*= (const pnBigInteger &num) |
pnBigInteger & | operator/= (const pnBigInteger &num) |
pnBigInteger & | operator%= (const pnBigInteger &num) |
pnBigInteger & | operator+= (unsigned int num) |
pnBigInteger & | operator-= (unsigned int num) |
pnBigInteger & | operator*= (unsigned int num) |
pnBigInteger & | operator/= (unsigned int num) |
pnBigInteger & | operator%= (unsigned int num) |
pnBigInteger & | operator<<= (size_t amt) |
pnBigInteger & | operator>>= (size_t amt) |
pnBigInteger | PowMod (const pnBigInteger &b, const pnBigInteger &m) const |
pnBigInteger | DivMod (const pnBigInteger &div, pnBigInteger &r) const |
Static Public Member Functions | |
static pnBigInteger | Random (size_t bits) |
Protected Attributes | |
BIGNUM * | fValue |
BN_CTX * | fContext |
pnBigInteger::pnBigInteger | ( | ) |
pnBigInteger::pnBigInteger | ( | const pnBigInteger & | init | ) |
pnBigInteger::pnBigInteger | ( | unsigned int | init | ) |
pnBigInteger::pnBigInteger | ( | const unsigned char * | data, |
size_t | count, | ||
bool | littleEndian = true |
||
) |
pnBigInteger::~pnBigInteger | ( | ) |
pnBigInteger pnBigInteger::DivMod | ( | const pnBigInteger & | div, |
pnBigInteger & | r | ||
) | const |
bool pnBigInteger::getBit | ( | size_t | bit | ) | const |
size_t pnBigInteger::getBitSize | ( | ) | const |
size_t pnBigInteger::getByteSize | ( | ) | const |
void pnBigInteger::getData | ( | unsigned char * | data, |
size_t | bytes, | ||
bool | littleEndian = true |
||
) | const |
bool pnBigInteger::operator!= | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator!= | ( | unsigned int | num | ) | const |
pnBigInteger pnBigInteger::operator% | ( | const pnBigInteger & | num | ) | const |
pnBigInteger pnBigInteger::operator% | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator%= | ( | const pnBigInteger & | num | ) |
pnBigInteger& pnBigInteger::operator%= | ( | unsigned int | num | ) |
pnBigInteger pnBigInteger::operator* | ( | const pnBigInteger & | num | ) | const |
pnBigInteger pnBigInteger::operator* | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator*= | ( | const pnBigInteger & | num | ) |
pnBigInteger& pnBigInteger::operator*= | ( | unsigned int | num | ) |
pnBigInteger pnBigInteger::operator+ | ( | const pnBigInteger & | num | ) | const |
pnBigInteger pnBigInteger::operator+ | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator++ | ( | ) |
pnBigInteger& pnBigInteger::operator+= | ( | const pnBigInteger & | num | ) |
pnBigInteger& pnBigInteger::operator+= | ( | unsigned int | num | ) |
pnBigInteger pnBigInteger::operator- | ( | const pnBigInteger & | num | ) | const |
pnBigInteger pnBigInteger::operator- | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator-- | ( | ) |
pnBigInteger& pnBigInteger::operator-= | ( | const pnBigInteger & | num | ) |
pnBigInteger& pnBigInteger::operator-= | ( | unsigned int | num | ) |
pnBigInteger pnBigInteger::operator/ | ( | const pnBigInteger & | num | ) | const |
pnBigInteger pnBigInteger::operator/ | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator/= | ( | const pnBigInteger & | num | ) |
pnBigInteger& pnBigInteger::operator/= | ( | unsigned int | num | ) |
bool pnBigInteger::operator< | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator< | ( | unsigned int | num | ) | const |
pnBigInteger pnBigInteger::operator<< | ( | size_t | amt | ) | const |
pnBigInteger& pnBigInteger::operator<<= | ( | size_t | amt | ) |
bool pnBigInteger::operator<= | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator<= | ( | unsigned int | num | ) | const |
pnBigInteger& pnBigInteger::operator= | ( | const pnBigInteger & | init | ) |
pnBigInteger& pnBigInteger::operator= | ( | unsigned int | init | ) |
bool pnBigInteger::operator== | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator== | ( | unsigned int | num | ) | const |
bool pnBigInteger::operator> | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator> | ( | unsigned int | num | ) | const |
bool pnBigInteger::operator>= | ( | const pnBigInteger & | num | ) | const |
bool pnBigInteger::operator>= | ( | unsigned int | num | ) | const |
pnBigInteger pnBigInteger::operator>> | ( | size_t | amt | ) | const |
pnBigInteger& pnBigInteger::operator>>= | ( | size_t | amt | ) |
pnBigInteger pnBigInteger::PowMod | ( | const pnBigInteger & | b, |
const pnBigInteger & | m | ||
) | const |
|
static |
void pnBigInteger::set | ( | const pnBigInteger & | init | ) |
void pnBigInteger::set | ( | unsigned int | init | ) |
void pnBigInteger::set | ( | const unsigned char * | data, |
size_t | count, | ||
bool | littleEndian = true |
||
) |
void pnBigInteger::setBit | ( | size_t | bit, |
bool | on | ||
) |
|
protected |
|
protected |