namespace Akenti class OpenSSLKeyImpl

This class wraps an ssl ENV_PKEY structure which it assumes contains a private and public RSA key pair

Inheritance:


Public Methods

virtual ~OpenSSLKeyImpl ()
Destructor
string privateDecrypt (const string &encrypted) const
Uses the contained private RSA key to decrypt the input string
string privateEncrypt (const string &data) const
Uses the contained private RSA key to encrypt the input string
string publicDecrypt (const string &encrypted) const
Uses the contained public RSA key to decrypt the input string
string publicEncrypt (const string &data) const
Uses the contained public RSA key to encrypt the input string
int size () const
Returns ENV_PKey_size of the contained ENV_Pkey
string format () const
Returns DER
string algorithm () const
Returns RSA

Protected Methods

OpenSSLKeyImpl (EVP_PKEY *evp)
Constructor

Documentation

This class wraps an ssl ENV_PKEY structure which it assumes contains a private and public RSA key pair. It implements methods to use either the private or public key to encypt or decrypt an input string.
virtual ~OpenSSLKeyImpl()
Destructor

string privateDecrypt(const string &encrypted) const
Uses the contained private RSA key to decrypt the input string.
Throws:
SecurityException OpenSSLRSAPrivateKeyImpl: decryption failure
Returns:
s the decyrpted string
Parameters:
encrypted - the data to be decrypted

string privateEncrypt(const string &data) const
Uses the contained private RSA key to encrypt the input string.
Throws:
SecurityException OpenSSLRSAPrivateKeyImpl: encryption failure
Returns:
the encyrpted string.
Parameters:
data - the data to be encrypted

string publicDecrypt(const string &encrypted) const
Uses the contained public RSA key to decrypt the input string.
Throws:
SecurityException OpenSSLRSAPublicKeyImpl: decryption failure
Returns:
the decyrpted string
Parameters:
encrypted - the data to be decrypted

string publicEncrypt(const string &data) const
Uses the contained public RSA key to encrypt the input string.
Throws:
SecurityException OpenSSLRSAPublicKeyImpl: encryption failure
Returns:
the encyrpted string.
Parameters:
data - the data to be encrypted

int size() const
Returns ENV_PKey_size of the contained ENV_Pkey

string format() const
Returns DER

string algorithm() const
Returns RSA

OpenSSLKeyImpl(EVP_PKEY *evp)
Constructor


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de