OKlibrary  0.2.1.6
Algebra Namespace Reference

Classes

struct  Normed_remainder
class  Z_mod_n
class  Zmodn
struct  RSA

Functions

template<typename Int >
Int normed_remainder (const Int x, const Int n)
template<unsigned long int modulus, typename Int >
Z_mod_n< modulus, Intoperator+ (const Z_mod_n< modulus, Int > a, const Z_mod_n< modulus, Int > b)
template<unsigned long int modulus, typename Int >
Z_mod_n< modulus, Intoperator* (const Z_mod_n< modulus, Int > a, const Z_mod_n< modulus, Int > b)
template<unsigned long int modulus, typename Int >
Z_mod_n< modulus, Intoperator- (const Z_mod_n< modulus, Int > a, const Z_mod_n< modulus, Int > b)
template<unsigned long int modulus, typename Int >
Z_mod_n< modulus, Intoperator- (const Z_mod_n< modulus, Int > a)
template<unsigned long int modulus, typename Int >
Z_mod_n< modulus, Intoperator/ (const Z_mod_n< modulus, Int > a, const Z_mod_n< modulus, Int > b)
template<unsigned long int modulus, typename Int >
bool operator!= (const Z_mod_n< modulus, Int > a, const Z_mod_n< modulus, Int > b)
template<typename Int >
Zmodn< Intoperator+ (const Zmodn< Int > a, const Zmodn< Int > b)
template<typename Int >
Zmodn< Intoperator* (const Zmodn< Int > a, const Zmodn< Int > b)
template<typename Int >
Zmodn< Intoperator- (const Zmodn< Int > a, const Zmodn< Int > b)
template<typename Int >
Zmodn< Intoperator- (const Zmodn< Int > a)
template<typename Int >
Zmodn< Intoperator/ (const Zmodn< Int > a, const Zmodn< Int > b)
template<typename Int >
bool operator!= (const Zmodn< Int > a, const Zmodn< Int > b)

Function Documentation

template<typename Int >
Int Algebra::normed_remainder ( const Int  x,
const Int  n 
) [inline]

Definition at line 52 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
bool Algebra::operator!= ( const Z_mod_n< modulus, Int a,
const Z_mod_n< modulus, Int b 
) [inline]

Definition at line 161 of file Algebra_Models.hpp.

template<typename Int >
bool Algebra::operator!= ( const Zmodn< Int a,
const Zmodn< Int b 
) [inline]

Definition at line 293 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
Z_mod_n<modulus, Int> Algebra::operator* ( const Z_mod_n< modulus, Int a,
const Z_mod_n< modulus, Int b 
) [inline]

Definition at line 135 of file Algebra_Models.hpp.

template<typename Int >
Zmodn<Int> Algebra::operator* ( const Zmodn< Int a,
const Zmodn< Int b 
) [inline]

Definition at line 267 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
Z_mod_n<modulus, Int> Algebra::operator+ ( const Z_mod_n< modulus, Int a,
const Z_mod_n< modulus, Int b 
) [inline]

Definition at line 129 of file Algebra_Models.hpp.

template<typename Int >
Zmodn<Int> Algebra::operator+ ( const Zmodn< Int a,
const Zmodn< Int b 
) [inline]

Definition at line 261 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
Z_mod_n<modulus, Int> Algebra::operator- ( const Z_mod_n< modulus, Int a,
const Z_mod_n< modulus, Int b 
) [inline]

Definition at line 141 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
Z_mod_n<modulus, Int> Algebra::operator- ( const Z_mod_n< modulus, Int a) [inline]

Definition at line 147 of file Algebra_Models.hpp.

template<typename Int >
Zmodn<Int> Algebra::operator- ( const Zmodn< Int a,
const Zmodn< Int b 
) [inline]

Definition at line 273 of file Algebra_Models.hpp.

template<typename Int >
Zmodn<Int> Algebra::operator- ( const Zmodn< Int a) [inline]

Definition at line 279 of file Algebra_Models.hpp.

template<unsigned long int modulus, typename Int >
Z_mod_n<modulus, Int> Algebra::operator/ ( const Z_mod_n< modulus, Int a,
const Z_mod_n< modulus, Int b 
) [inline]

Definition at line 153 of file Algebra_Models.hpp.

template<typename Int >
Zmodn<Int> Algebra::operator/ ( const Zmodn< Int a,
const Zmodn< Int b 
) [inline]

Definition at line 285 of file Algebra_Models.hpp.