class RSAKeyImpl
More...
#include <RSAKeyImpl.h>
|
| RSAKeyImpl (const EVPPKey &key) |
|
| RSAKeyImpl (const X509Certificate &cert) |
| Constructs ECKeyImpl by extracting the EC key.
|
|
| RSAKeyImpl (const PKCS12Container &cert) |
| Extracts the RSA public key from the given certificate.
|
|
| RSAKeyImpl (int keyLength, unsigned long exponent) |
| Extracts the EC private key from the given certificate.
|
|
| RSAKeyImpl (const std::string &publicKeyFile, const std::string &privateKeyFile, const std::string &privateKeyPassphrase) |
|
| RSAKeyImpl (std::istream *pPublicKeyStream, std::istream *pPrivateKeyStream, const std::string &privateKeyPassphrase) |
|
| ~RSAKeyImpl () |
|
RSA * | getRSA () |
| Destroys the RSAKeyImpl.
|
|
const RSA * | getRSA () const |
| Returns the OpenSSL RSA object.
|
|
int | size () const |
| Returns the OpenSSL RSA object.
|
|
ByteVec | modulus () const |
| Returns the RSA modulus size.
|
|
ByteVec | encryptionExponent () const |
| Returns the RSA modulus.
|
|
ByteVec | decryptionExponent () const |
| Returns the RSA encryption exponent.
|
|
void | save (const std::string &publicKeyFile, const std::string &privateKeyFile="", const std::string &privateKeyPassphrase="") const |
| Returns the RSA decryption exponent.
|
|
void | save (std::ostream *pPublicKeyStream, std::ostream *pPrivateKeyStream=0, const std::string &privateKeyPassphrase="") const |
|
| KeyPairImpl (const std::string &name, Type type) |
|
virtual | ~KeyPairImpl () |
| Create KeyPairImpl with specified type and name.
|
|
const std::string & | name () const |
|
Type | type () const |
| Returns key pair name.
|
|
| RefCountedObject () |
|
void | duplicate () const |
|
void | release () const noexcept |
| Increments the object's reference count.
|
|
int | referenceCount () const |
|
class RSAKeyImpl
Definition at line 46 of file RSAKeyImpl.h.
◆ ByteVec
◆ Ptr
◆ RSAKeyImpl() [1/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
const EVPPKey & | key | ) |
|
◆ RSAKeyImpl() [2/7]
Constructs ECKeyImpl by extracting the EC key.
◆ RSAKeyImpl() [3/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
const PKCS12Container & | cert | ) |
|
Extracts the RSA public key from the given certificate.
◆ RSAKeyImpl() [4/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
int | keyLength, |
|
|
unsigned long | exponent ) |
Extracts the EC private key from the given certificate.
◆ RSAKeyImpl() [5/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
const std::string & | publicKeyFile, |
|
|
const std::string & | privateKeyFile, |
|
|
const std::string & | privateKeyPassphrase ) |
Creates the RSAKey. Creates a new public/private keypair using the given parameters. Can be used to sign data and verify signatures.
◆ RSAKeyImpl() [6/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
std::istream * | pPublicKeyStream, |
|
|
std::istream * | pPrivateKeyStream, |
|
|
const std::string & | privateKeyPassphrase ) |
Creates the RSAKey, by reading public and private key from the given files and using the given passphrase for the private key. Can only by used for signing if a private key is available.
◆ ~RSAKeyImpl()
Poco::Crypto::RSAKeyImpl::~RSAKeyImpl |
( |
| ) |
|
Creates the RSAKey. Can only by used for signing if pPrivKey is not null. If a private key file is specified, you don't need to specify a public key file. OpenSSL will auto-create it from the private key.
◆ RSAKeyImpl() [7/7]
Poco::Crypto::RSAKeyImpl::RSAKeyImpl |
( |
| ) |
|
|
private |
Exports the public and private key to the given streams.
If a null pointer is passed for a stream, the corresponding key is not exported.
◆ convertToByteVec()
static ByteVec Poco::Crypto::RSAKeyImpl::convertToByteVec |
( |
const BIGNUM * | bn | ) |
|
|
staticprivate |
◆ decryptionExponent()
ByteVec Poco::Crypto::RSAKeyImpl::decryptionExponent |
( |
| ) |
const |
Returns the RSA encryption exponent.
◆ encryptionExponent()
ByteVec Poco::Crypto::RSAKeyImpl::encryptionExponent |
( |
| ) |
const |
◆ freeRSA()
void Poco::Crypto::RSAKeyImpl::freeRSA |
( |
| ) |
|
|
private |
◆ getRSA() [1/2]
RSA * Poco::Crypto::RSAKeyImpl::getRSA |
( |
| ) |
|
|
inline |
◆ getRSA() [2/2]
const RSA * Poco::Crypto::RSAKeyImpl::getRSA |
( |
| ) |
const |
|
inline |
Returns the OpenSSL RSA object.
Definition at line 132 of file RSAKeyImpl.h.
◆ modulus()
ByteVec Poco::Crypto::RSAKeyImpl::modulus |
( |
| ) |
const |
Returns the RSA modulus size.
◆ save() [1/2]
void Poco::Crypto::RSAKeyImpl::save |
( |
const std::string & | publicKeyFile, |
|
|
const std::string & | privateKeyFile = "", |
|
|
const std::string & | privateKeyPassphrase = "" ) const |
|
virtual |
◆ save() [2/2]
void Poco::Crypto::RSAKeyImpl::save |
( |
std::ostream * | pPublicKeyStream, |
|
|
std::ostream * | pPrivateKeyStream = 0, |
|
|
const std::string & | privateKeyPassphrase = "" ) const |
|
virtual |
Exports the public and private keys to the given files.
If an empty filename is specified, the corresponding key is not exported.
Implements Poco::Crypto::KeyPairImpl.
◆ size()
int Poco::Crypto::RSAKeyImpl::size |
( |
| ) |
const |
|
virtual |
◆ _pRSA
RSA* Poco::Crypto::RSAKeyImpl::_pRSA |
|
private |
The documentation for this class was generated from the following file:
- C:/Users/lachl/Downloads/ArkServerAPI_NEW/ASE/AseApi-main/include/Poco/Poco/Crypto/RSAKeyImpl.h