libcryptosec
|
#include <RSAKeyPair.h>
Public Member Functions | |
RSAKeyPair (int length) throw (AsymmetricKeyException) | |
virtual | ~RSAKeyPair () |
virtual PublicKey * | getPublicKey () throw (AsymmetricKeyException, EncodeException) |
virtual PrivateKey * | getPrivateKey () throw (AsymmetricKeyException) |
virtual AsymmetricKey::Algorithm | getAlgorithm () throw (AsymmetricKeyException) |
![]() | |
KeyPair (AsymmetricKey::Algorithm algorithm, int length) throw (AsymmetricKeyException) | |
KeyPair (Engine *engine, std::string keyId) throw (EngineException) | |
KeyPair (std::string pemEncoded, ByteArray passphrase) throw (EncodeException) | |
KeyPair (std::string pemEncoded) throw (EncodeException) | |
KeyPair (ByteArray derEncoded) throw (EncodeException) | |
KeyPair (const KeyPair &keyPair) | |
virtual | ~KeyPair () |
std::string | getPemEncoded (SymmetricKey &passphrase, SymmetricCipher::OperationMode mode) throw (SymmetricCipherException, EncodeException) |
std::string | getPemEncoded () throw (EncodeException) |
ByteArray | getDerEncoded () throw (EncodeException) |
int | getSize () throw (AsymmetricKeyException) |
int | getSizeBits () throw (AsymmetricKeyException) |
EVP_PKEY * | getEvpPkey () const |
ENGINE * | getEngine () const |
std::string | getKeyId () const |
Additional Inherited Members | |
![]() | |
KeyPair () | |
std::string | getPublicKeyPemEncoded () throw (EncodeException) |
![]() | |
static int | passphraseCallBack (char *buf, int size, int rwflag, void *u) |
![]() | |
EVP_PKEY * | key |
std::string | keyId |
ENGINE * | engine |
Representa um par de chaves assimétricas RSA. Essa classe deve ser usada para a criação de chaves assimétricas RSA É uma especialização da classe KeyPair
RSAKeyPair::RSAKeyPair | ( | int | length | ) | |
throw | ( | AsymmetricKeyException | |||
) |
create a RSAKeyPair object, creating a new key pair
length | key lenght |
AsymmetricKeyException | if the key cannot be created |
|
virtual |
|
virtual |
encode the key pair in PEM format encrypted
passphrase | key for encrypt the key pair |
mode | cipher operation mode |
Reimplemented from KeyPair.
|
virtual |
|
virtual |