class OpenSSLPrivateKeyImpl

This class is instantiated from two superclasses OpenSSLKeyImpl and PrivateKeyImpl and wraps the privateKey methods of OpenSSLKeyImpl.

Inheritance:


Public Methods

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


Inherited from OpenSSLKeyImpl:

Public Methods

ostring privateDecrypt(const string &encrypted) const
ostring privateEncrypt(const string &data) const
ostring publicDecrypt(const string &encrypted) const
ostring publicEncrypt(const string &data) const
oint size() const
ostring format() const
ostring 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.

ostring 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.

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

oint getSize() const
Returns the size of the key

ostring encrypt(const string &data) const
Encrypt the data using standard algorithm "RSA"

Parameters:
string - data data to be encrypted
Returns:
the encrypted string

ostring decrypt(const string &encrypted) const
Decrypts the encrypted string

Parameters:
string - a cipher-text to be decrypted
Returns:
the unencrypted string

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

Returns:
debugging info

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

o 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 HTML hierarchy of classes or Java



This page was generated with the help of DOC++.