libcryptosec
|
#include <ECDSAKeyPair.h>
Public Member Functions | |
ECDSAKeyPair (ByteArray &derEncoded) throw (AsymmetricKeyException) | |
ECDSAKeyPair (std::string &encoded) throw (AsymmetricKeyException) | |
ECDSAKeyPair (const EllipticCurve &curve) throw (AsymmetricKeyException) | |
ECDSAKeyPair (AsymmetricKey::Curve curve, bool named=true) throw (AsymmetricKeyException) | |
virtual | ~ECDSAKeyPair () |
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 |
Protected Member Functions | |
void | generateKey (EC_GROUP *group) throw (AsymmetricKeyException) |
EC_GROUP * | createGroup (const EllipticCurve &curve) |
EC_GROUP * | createGroup (ByteArray &derEncoded) |
![]() | |
KeyPair () | |
std::string | getPublicKeyPemEncoded () throw (EncodeException) |
Additional Inherited Members | |
![]() | |
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 ECDSA. Essa classe deve ser usada para a criação de chaves assimétricas ECDSA que não possui nome ou NID definido no OpenSSL. Par de chaves é gerada através dos parâmetros da curva, enviados em ASN1 (PEM ou DER) ou pela classe EllipticCurve. É uma especialização da classe KeyPair
ECDSAKeyPair::ECDSAKeyPair | ( | ByteArray & | derEncoded | ) | |
throw | ( | AsymmetricKeyException | |||
) |
Cria par por parâmetros informados em DER TODO
ECDSAKeyPair::ECDSAKeyPair | ( | std::string & | encoded | ) | |
throw | ( | AsymmetricKeyException | |||
) |
Cria par por parâmetros informados em PEM TODO
ECDSAKeyPair::ECDSAKeyPair | ( | const EllipticCurve & | curve | ) | |
throw | ( | AsymmetricKeyException | |||
) |
Cria par por parãmetros informados por um objeto Curve TODO
ECDSAKeyPair::ECDSAKeyPair | ( | AsymmetricKey::Curve | curve, |
bool | named = true |
||
) | |||
throw | ( | AsymmetricKeyException | |
) |
|
virtual |
|
protected |
|
protected |
|
protected |
|
virtual |
|
virtual |
|
virtual |