namespace Akenti class OpenSSLKeyImpl This class wraps an ssl ENV_PKEY structure which it assumes contains a private and public RSA key pair
| | OpenSSLKeyFactoryImpl () Construct this object |
| | ~OpenSSLKeyFactoryImpl () Delete this object |
| | getKeyEncoded (const string& format, const PublicKey& key) const Encodes the key using a format specified by format |
| | getKeyEncoded (const string& format, const PrivateKey& key) const Encodes the key using a format specified by format |
| | initPublicKey (const string& format, const string& type, const string& encoding) const returns a PublicKey |
| | initPrivateKey (const string& format, const string& encoding) const returns a PrivateKey |
| | generateRSAKeyPair (int size, unsigned long exponent) const Generates an RSA key pair |
| | generateDSAKeyPair (int size, const string& seed) const Generates a DSA key pair |
| | ~OpenSSLKeyImpl () Destructor |
| | privateDecrypt (const string &encrypted) const Uses the contained private RSA key to decrypt the input string |
| | privateEncrypt (const string &data) const Uses the contained private RSA key to encrypt the input string |
| | publicDecrypt (const string &encrypted) const Uses the contained public RSA key to decrypt the input string |
| | publicEncrypt (const string &data) const Uses the contained public RSA key to encrypt the input string |
| | size () const Returns ENV_PKey_size of the contained ENV_Pkey |
| | format () const Returns DER |
| | algorithm () const Returns RSA |
| | OpenSSLKeyImpl (EVP_PKEY *evp) Constructor |
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.
~OpenSSLKeyFactoryImpl()
string getKeyEncoded(const string& format, const PublicKey& key) const
SecurityException if format is unsupported or if the
encoding fails
key - PublicKey to be encoded
PublicKeyImpl
string getKeyEncoded(const string& format, const PrivateKey& key) const
SecurityException if format is unsupported or if the
encoding fails
key - PrivateKey to be encoded
PrivateKeyImpl
PublicKey initPublicKey(const string& format, const string& type, const string& encoding) const
type - the key's type
encoding - a string of bytes
PublicKeyImpl
PrivateKey initPrivateKey(const string& format, const string& encoding) const
type - the key's type
encoding - a string of bytes
PrivateKeyImpl
KeyPair generateRSAKeyPair(int size, unsigned long exponent) const
size - int exponent a prime number
PrivateKey
PrivateKeyImpl
PublicKey
PublicImpl
KeyPair generateDSAKeyPair(int size, const string& seed) const
size - string used to seed the genrator
PrivateKey
PrivateKeyImpl
PublicKey
PublicImpl
virtual ~OpenSSLKeyImpl()
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
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