namespace Akenti class OpenSSLPrivateKeyImpl : private OpenSSLKeyImpl, public PrivateKeyImpl

This class is instantiated from two superclasses OpenSSLKeyImpl and PrivateKeyImpl and wraps the privateKey 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
OpenSSLPrivateKeyImpl (EVP_PKEY *evp)
The constructor is used by OpenSSLKeyFactoryImpl

Inherited from OpenSSLKeyImpl:

Public Methods

OpenSSLKeyFactoryImpl()
~OpenSSLKeyFactoryImpl()
string getKeyEncoded(const string& format, const PublicKey& key) const
string getKeyEncoded(const string& format, const PrivateKey& key) const
PublicKey initPublicKey(const string& format, const string& type, const string& encoding) const
PrivateKey initPrivateKey(const string& format, const string& encoding) const
KeyPair generateRSAKeyPair(int size, unsigned long exponent) const
KeyPair generateDSAKeyPair(int size, const string& seed) const
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 PrivateKeyImpl:


Documentation

This class is instantiated from two superclasses OpenSSLKeyImpl and PrivateKeyImpl and wraps the privateKey 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"
Returns:
the encrypted string
Parameters:
string - data data to be encrypted

string decrypt(const string &encrypted) const
Decrypts the encrypted string
Returns:
the unencrypted string
Parameters:
string - a 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

OpenSSLPrivateKeyImpl(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
PrivateKeyImpl
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