Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RSAcrypter Class Reference

#include <RSAcrypter.h>

Inheritance diagram for RSAcrypter:

Crypter List of all members.

Public Types

enum  keytype { publickey, privatekey }

Public Methods

 RSAcrypter (keytype keyt, const char *keyfile, const char *seedfile=NULL)
 RSAcrypter (RSA *rsa, const char *seedfile=NULL)
bufferpublic_encrypt (unsigned char *buf, int length)
bufferprivate_decrypt (unsigned char *buf, int length)
bufferprivate_sign (unsigned char *buf, int length)
int public_verify (unsigned char *buf, int length, unsigned char *sig)
RSA * getRSA ()

Private Attributes

RSA * rsa

Static Private Attributes

const unsigned int shasize = 20
int blksize

Member Enumeration Documentation

enum RSAcrypter::keytype
 

Enumeration values:
publickey 
privatekey 

Definition at line 11 of file RSAcrypter.h.


Constructor & Destructor Documentation

RSAcrypter::RSAcrypter keytype    keyt,
const char *    keyfile,
const char *    seedfile = NULL
 

Definition at line 18 of file RSAcrypter.cpp.

References publickey, and rsa.

RSAcrypter::RSAcrypter RSA *    rsa,
const char *    seedfile = NULL
 

Definition at line 41 of file RSAcrypter.cpp.


Member Function Documentation

RSA * RSAcrypter::getRSA  
 

Definition at line 49 of file RSAcrypter.cpp.

References rsa.

Crypter::buffer * RSAcrypter::private_decrypt unsigned char *    buf,
int    length
[virtual]
 

Implements Crypter.

Definition at line 97 of file RSAcrypter.cpp.

References blksize, bs, buffer, and rsa.

Referenced by main().

Crypter::buffer * RSAcrypter::private_sign unsigned char *    buf,
int    length
[virtual]
 

Implements Crypter.

Definition at line 128 of file RSAcrypter.cpp.

References buffer, rsa, and shasize.

Referenced by main().

Crypter::buffer * RSAcrypter::public_encrypt unsigned char *    buf,
int    length
[virtual]
 

Implements Crypter.

Definition at line 54 of file RSAcrypter.cpp.

References blksize, bs, buffer, and rsa.

Referenced by main().

int RSAcrypter::public_verify unsigned char *    buf,
int    length,
unsigned char *    sig
[virtual]
 

Implements Crypter.

Definition at line 150 of file RSAcrypter.cpp.

References rsa, and shasize.

Referenced by main().


Member Data Documentation

int RSAcrypter::blksize [static, private]
 

Definition at line 24 of file RSAcrypter.h.

Referenced by private_decrypt(), and public_encrypt().

RSA* RSAcrypter::rsa [private]
 

Definition at line 23 of file RSAcrypter.h.

Referenced by getRSA(), private_decrypt(), private_sign(), public_encrypt(), public_verify(), and RSAcrypter().

const unsigned int RSAcrypter::shasize = 20 [static, private]
 

Definition at line 15 of file RSAcrypter.cpp.

Referenced by private_sign(), and public_verify().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:40 2002 for qadpz by doxygen1.2.18