namespace Akenti class OpenSSLPublicKeyImpl : private OpenSSLKeyImpl, public PublicKeyImpl

This class is instantiated from two superclasses OpenSSLKeyImpl and PublicKeyImpl and wraps the publicKey methods of OpenSSLKeyImpl

Inheritance:


Public Methods

string getAlgorithm () const
Returns the standard algorithm name for this key
string getFormat () const
Returns the standard format name such as "DER" to indicate using which format to encode the key
int getSize () const
Returns the size of the key
string encrypt (const string& data) const
Encrypt the data using standard algorithm "RSA"
string decrypt (const string& encrypted) const
Decrypts the encrypted string
string paramString () const
Returns a string representation of this key for debugging purposes
EVP_PKEY* getEVP_PKEY ()
This should discourage clients not to mess around with implementation details
OpenSSLPublicKeyImpl (EVP_PKEY* evp)
The constructor is used by OpenSSLKeyFactoryImpl

Inherited from OpenSSLKeyImpl:

Public Methods

string privateDecrypt(const string &encrypted) const
string privateEncrypt(const string &data) const
string publicDecrypt(const string &encrypted) const
string publicEncrypt(const string &data) const
int size() const
string format() const
string algorithm() const

Inherited from PublicKeyImpl:


Documentation

This class is instantiated from two superclasses OpenSSLKeyImpl and PublicKeyImpl and wraps the publicKey methods of OpenSSLKeyImpl. It inherits a EVP_PKEY structure from OpenSSLKeyImpl.
string getAlgorithm() const
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key. "RSA" would indicate that this key is a RSA key
Returns:
the name of the algorithm associated with this key.

string getFormat() const
Returns the standard format name such as "DER" to indicate using which format to encode the key

int getSize() const
Returns the size of the key

string encrypt(const string& data) const
Encrypt the data using standard algorithm "RSA"
Parameters:
string - & data plain-text string to be encrypted @eturn the encrypted string

string decrypt(const string& encrypted) const
Decrypts the encrypted string
Returns:
the decrypted string
Parameters:
string - & encrypted cipher-text to be decrypted

string paramString() const
Returns a string representation of this key for debugging purposes.
Returns:
debugging info

EVP_PKEY* getEVP_PKEY()
This should discourage clients not to mess around with implementation details

OpenSSLPublicKeyImpl(EVP_PKEY* evp)
The constructor is used by OpenSSLKeyFactoryImpl


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
OpenSSLKeyImpl
PublicKeyImpl
KeyPair
getPublicKey()
KeyFactory
getKeyEncoded(const string&, const PublicKey&)
initPublicKey(const string&, const string&, const string&)
generateRSAKeyPair(int, unsigned long)
generateDSAKeyPair(int, const string&)
Signature
initVerify(const PublicKey&)

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