Crypto++  5.6.3
Free C++ class library of cryptographic schemes
Classes | Typedefs | Functions
integer.h File Reference

Go to the source code of this file.

Classes

struct  InitializeInteger
 Performs static intialization of the Integer class. More...
 
class  Integer
 Multiple precision integer with arithmetic operations. More...
 
class  Integer::DivideByZero
 Exception thrown when division by 0 is encountered. More...
 
class  Integer::RandomNumberNotFound
 Exception thrown when a random number cannot be found that satisfies the condition. More...
 
class  Integer::OpenPGPDecodeErr
 Exception thrown when an error is encountered decoding an OpenPGP integer. More...
 

Typedefs

typedef SecBlock< word, AllocatorWithCleanup< word, 0 > > IntegerSecBlock
 

Functions

bool operator== (const ::Integer &a, const ::Integer &b)
 
bool operator!= (const ::Integer &a, const ::Integer &b)
 
bool operator> (const ::Integer &a, const ::Integer &b)
 
bool operator>= (const ::Integer &a, const ::Integer &b)
 
bool operator< (const ::Integer &a, const ::Integer &b)
 
bool operator<= (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator+ (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator- (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator* (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator/ (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator% (const ::Integer &a, const ::Integer &b)
 
inline::Integer operator/ (const ::Integer &a,::word b)
 
inline::word operator% (const ::Integer &a,::word b)
 
void swap (::Integer &a,::Integer &b)
 

Function Documentation

inline ::Integer operator* ( const ::Integer a,
const ::Integer b 
)
See also
a_times_b_mod_c() and a_exp_b_mod_c()

Definition at line 577 of file integer.h.

inline ::Integer operator% ( const ::Integer a,
const ::Integer b 
)
See also
a_times_b_mod_c() and a_exp_b_mod_c()

Definition at line 582 of file integer.h.

inline ::word operator% ( const ::Integer a,
::word  b 
)
See also
a_times_b_mod_c() and a_exp_b_mod_c()

Definition at line 587 of file integer.h.