OKlibrary  0.2.1.6
Algebra::RSA< Int > Struct Template Reference

#include <Algebra_Models.hpp>

List of all members.

Public Types

typedef Int int_type
typedef Zmodn< Intmod_type

Public Member Functions

 RSA (const int_type p_, const int_type q_, const int_type e_)
mod_type encrypt (const int_type plaintext) const
mod_type decrypt (const int_type plaintext) const

Public Attributes

const int_type p
const int_type q
const int_type n
const int_type N
bool dummy
const mod_type e
const mod_type d

Detailed Description

template<typename Int = long int>
struct Algebra::RSA< Int >

Definition at line 320 of file Algebra_Models.hpp.


Member Typedef Documentation

template<typename Int = long int>
typedef Int Algebra::RSA< Int >::int_type

Definition at line 322 of file Algebra_Models.hpp.

template<typename Int = long int>
typedef Zmodn<Int> Algebra::RSA< Int >::mod_type

Definition at line 326 of file Algebra_Models.hpp.


Constructor & Destructor Documentation

template<typename Int = long int>
Algebra::RSA< Int >::RSA ( const int_type  p_,
const int_type  q_,
const int_type  e_ 
) [inline]

Definition at line 331 of file Algebra_Models.hpp.

References Algebra::Zmodn< Int >::modulus, and Algebra::RSA< Int >::n.


Member Function Documentation

template<typename Int = long int>
mod_type Algebra::RSA< Int >::decrypt ( const int_type  plaintext) const [inline]
template<typename Int = long int>
mod_type Algebra::RSA< Int >::encrypt ( const int_type  plaintext) const [inline]

Member Data Documentation

template<typename Int = long int>
const mod_type Algebra::RSA< Int >::d

Definition at line 329 of file Algebra_Models.hpp.

Referenced by Algebra::RSA< Int >::decrypt().

template<typename Int = long int>
bool Algebra::RSA< Int >::dummy

Definition at line 327 of file Algebra_Models.hpp.

template<typename Int = long int>
const mod_type Algebra::RSA< Int >::e

Definition at line 329 of file Algebra_Models.hpp.

Referenced by Algebra::RSA< Int >::encrypt().

template<typename Int = long int>
const int_type Algebra::RSA< Int >::N

Definition at line 324 of file Algebra_Models.hpp.

template<typename Int = long int>
const int_type Algebra::RSA< Int >::n

Definition at line 324 of file Algebra_Models.hpp.

Referenced by Algebra::RSA< Int >::RSA().

template<typename Int = long int>
const int_type Algebra::RSA< Int >::p

Definition at line 323 of file Algebra_Models.hpp.

template<typename Int = long int>
const int_type Algebra::RSA< Int >::q

Definition at line 323 of file Algebra_Models.hpp.


The documentation for this struct was generated from the following file: