rsa Class Reference

simple rsa, no padding or fancy stuff, just for the requirements this tacho stuff gives More...

#include <rsa.h>

Collaboration diagram for rsa:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 rsa ()
 rsa (unsigned char *modulus, int mlen, unsigned char *exponent, int elen)
std::vector< unsigned char > perform (const unsigned char *input, int length) const

Private Attributes

mpz n
mpz e


Detailed Description

simple rsa, no padding or fancy stuff, just for the requirements this tacho stuff gives

Constructor & Destructor Documentation

rsa::rsa (  )  [inline]

rsa::rsa ( unsigned char *  modulus,
int  mlen,
unsigned char *  exponent,
int  elen 
) [inline]

References e, n, and mpz::t.


Member Function Documentation

std::vector<unsigned char> rsa::perform ( const unsigned char *  input,
int  length 
) const [inline]

References e, n, and mpz::t.

Referenced by CheckSignature(), and verifiedcert::verify().


Member Data Documentation

mpz rsa::e [private]

Referenced by perform(), and rsa().

mpz rsa::n [private]

Referenced by perform(), and rsa().


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

Generated on Tue May 19 19:42:00 2009 by  doxygen 1.5.8