Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
RSACrypt< PRECISION > Class Template Reference

#include <rsacrypt.h>

Public Types

typedef Int< PRECISION > Integer
 

Public Member Functions

 RSACrypt ()
 
 ~RSACrypt ()
 
void Set_Public_Keys (const Integer &pub_n, const Integer &pub_e)
 
void Set_Keys (const Integer &pub_n, const Integer &pub_e, const Integer &priv_d, const Integer &keygen_p, const Integer &keygen_q)
 
void Get_Public_Keys (Integer &pub_n, Integer &pub_e) const
 
void Get_Private_Key (Integer &priv_d) const
 
void Get_Keygen_Keys (Integer &keygen_p, Integer &keygen_q) const
 
bool Load_SSH_Keyset (FileClass *file)
 
void Encrypt (const Integer &plaintext, Integer &cyphertext) const
 
void Decrypt (const Integer &cyphertext, Integer &plaintext) const
 

Detailed Description

template<int PRECISION>
class RSACrypt< PRECISION >

Definition at line 63 of file rsacrypt.h.

Member Typedef Documentation

◆ Integer

template<int PRECISION>
typedef Int<PRECISION> RSACrypt< PRECISION >::Integer

Definition at line 66 of file rsacrypt.h.

Constructor & Destructor Documentation

◆ RSACrypt()

template<int PRECISION>
RSACrypt< PRECISION >::RSACrypt ( )
inline

Definition at line 68 of file rsacrypt.h.

◆ ~RSACrypt()

template<int PRECISION>
RSACrypt< PRECISION >::~RSACrypt ( )
inline

Definition at line 69 of file rsacrypt.h.

Member Function Documentation

◆ Decrypt()

template<int PRECISION>
void RSACrypt< PRECISION >::Decrypt ( const Integer & cyphertext,
Integer & plaintext ) const

Definition at line 282 of file rsacrypt.h.

◆ Encrypt()

template<int PRECISION>
void RSACrypt< PRECISION >::Encrypt ( const Integer & plaintext,
Integer & cyphertext ) const

Definition at line 271 of file rsacrypt.h.

◆ Get_Keygen_Keys()

template<int PRECISION>
void RSACrypt< PRECISION >::Get_Keygen_Keys ( Integer & keygen_p,
Integer & keygen_q ) const

Definition at line 157 of file rsacrypt.h.

◆ Get_Private_Key()

template<int PRECISION>
void RSACrypt< PRECISION >::Get_Private_Key ( Integer & priv_d) const

Definition at line 146 of file rsacrypt.h.

◆ Get_Public_Keys()

template<int PRECISION>
void RSACrypt< PRECISION >::Get_Public_Keys ( Integer & pub_n,
Integer & pub_e ) const

Definition at line 136 of file rsacrypt.h.

◆ Load_SSH_Keyset()

template<int PRECISION>
bool RSACrypt< PRECISION >::Load_SSH_Keyset ( FileClass * file)

Definition at line 168 of file rsacrypt.h.

◆ Set_Keys()

template<int PRECISION>
void RSACrypt< PRECISION >::Set_Keys ( const Integer & pub_n,
const Integer & pub_e,
const Integer & priv_d,
const Integer & keygen_p,
const Integer & keygen_q )

Definition at line 119 of file rsacrypt.h.

◆ Set_Public_Keys()

template<int PRECISION>
void RSACrypt< PRECISION >::Set_Public_Keys ( const Integer & pub_n,
const Integer & pub_e )

Definition at line 109 of file rsacrypt.h.


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