This class is a subclass of KeyFactoryImpl which has methods for key generation, encoding, and decoding
![]() | 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& encoding) const returns a PublicKey |
![]() | initPrivateKey (const string& format, const string& encoding) const returns a PrivateKey |
![]() | initPrivateKeyFromFile (const string& format, const string& fileName) const |
![]() | generateRSAKeyPair (int size, unsigned long exponent) const Generates an RSA key pair |
![]() | generateDSAKeyPair (int size) const Generates a DSA key pair |
This class is a subclass of KeyFactoryImpl which has methods for key generation, encoding, and decoding. a pair of RSA or DSA keyPairs will be generated by calling generateRSAKeyPair()or generateDSAKeyPair(). a privateKey or publicKey can be encoded by calling getKeyEncoded() with the format specified as "DER". a privateKey or publicKey class can be initialized from a DER string by calling initPrivateKey() or initPublicKey(). Both RSA and DSA keys are currently handled.
~OpenSSLKeyFactoryImpl()
string getKeyEncoded(const string& format, const PublicKey& key) const
Error if key is unitialized or unrecognized
key - PublicKey to be encoded
string getKeyEncoded(const string& format, const PrivateKey& key) const
Error if key is uninitialized or unrecognized
key - PrivateKey to be encoded
PublicKey initPublicKey(const string& format, const string& encoding) const
type - the key's type
encoding - a string of bytes
PrivateKey initPrivateKey(const string& format, const string& encoding) const
type - the key's type
encoding - a string of bytes
PrivateKey initPrivateKeyFromFile(const string& format, const string& fileName) const
KeyPair generateRSAKeyPair(int size, unsigned long exponent) const
size - int exponent a prime number
PrivateKey
PublicKey KeyPair generateDSAKeyPair(int size) const
PrivateKey
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