Public Member Functions

RSACrypt Class Reference

#include <RSACrypt.h>

List of all members.

Public Member Functions

 RSACrypt ()
 ~RSACrypt ()
bool setPrivateKey (const uint32_t *p, const uint32_t *q, int halfFactorLimbs)
bool setPublicKey (const uint32_t *modulus, int mod_limbs, uint32_t e)
bool generatePrivateKey (uint32_t limbs)
uint32_t getFactorLimbs ()
void getPrivateP (uint32_t *p)
void getPrivateQ (uint32_t *q)
uint32_t getModLimbs ()
void getPublicModulus (uint32_t *modulus)
uint32_t getPublicExponent ()
bool encrypt (uint32_t *ct, const uint32_t *pt)
bool decrypt (uint32_t *pt, const uint32_t *ct)

Detailed Description

Definition at line 9 of file RSACrypt.h.


Constructor & Destructor Documentation

RSACrypt::RSACrypt (  ) 

Definition at line 12 of file RSACrypt.cpp.

RSACrypt::~RSACrypt (  ) 

Definition at line 29 of file RSACrypt.cpp.


Member Function Documentation

bool RSACrypt::decrypt ( uint32_t pt,
const uint32_t ct 
)

Definition at line 198 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool RSACrypt::encrypt ( uint32_t ct,
const uint32_t pt 
)

Definition at line 189 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool RSACrypt::generatePrivateKey ( uint32_t  limbs  ) 

Definition at line 148 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t RSACrypt::getFactorLimbs (  ) 

Definition at line 159 of file RSACrypt.cpp.

uint32_t RSACrypt::getModLimbs (  ) 

Definition at line 174 of file RSACrypt.cpp.

void RSACrypt::getPrivateP ( uint32_t p  ) 

Definition at line 164 of file RSACrypt.cpp.

Here is the call graph for this function:

void RSACrypt::getPrivateQ ( uint32_t q  ) 

Definition at line 169 of file RSACrypt.cpp.

Here is the call graph for this function:

uint32_t RSACrypt::getPublicExponent (  ) 

Definition at line 184 of file RSACrypt.cpp.

Here is the caller graph for this function:

void RSACrypt::getPublicModulus ( uint32_t modulus  ) 

Definition at line 179 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool RSACrypt::setPrivateKey ( const uint32_t p,
const uint32_t q,
int  halfFactorLimbs 
)

Definition at line 57 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool RSACrypt::setPublicKey ( const uint32_t modulus,
int  mod_limbs,
uint32_t  e 
)

Definition at line 130 of file RSACrypt.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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