MySQL 8.0.39
Source Code Documentation
|
Classes | |
struct | ASN1_TIME_deleter |
struct | BIO_deleter |
struct | EVP_MD_CTX_deleter |
struct | EVP_PKEY_deleter |
class | Key_Content |
struct | X509_deleter |
Typedefs | |
using | BIO_ptr = std::unique_ptr< BIO, BIO_deleter > |
using | X509_ptr = std::unique_ptr< X509, X509_deleter > |
using | ASN1_TIME_ptr = std::unique_ptr< ASN1_TIME, ASN1_TIME_deleter > |
using | EVP_PKEY_ptr = std::unique_ptr< EVP_PKEY, EVP_PKEY_deleter > |
using | EVP_MD_CTX_ptr = std::unique_ptr< EVP_MD_CTX, EVP_MD_CTX_deleter > |
Enumerations | |
enum class | Algorithm { SHA_1 , SHA_256 } |
Functions | |
std::string | base64_encode (const void *binary, size_t length) |
BASE64 encode encrypted data. More... | |
std::string | base64_encode (const Data &data) |
Data | base64_decode (const std::string &encoded) |
BASE64 decode an encoded string. More... | |
std::string | load_public_key_file (const std::string &public_key_file) |
EVP_PKEY_ptr | load_public_key (const std::string &public_key_content) |
Create public key BIO from in-memory public key buffer. More... | |
bool | verify (const std::string &digest, const std::string &message, const std::string &public_key_content) |
Verify a message signed by the private key pair of the provided public key. More... | |
using oci::ssl::ASN1_TIME_ptr = typedef std::unique_ptr<ASN1_TIME, ASN1_TIME_deleter> |
using oci::ssl::BIO_ptr = typedef std::unique_ptr<BIO, BIO_deleter> |
using oci::ssl::EVP_MD_CTX_ptr = typedef std::unique_ptr<EVP_MD_CTX, EVP_MD_CTX_deleter> |
using oci::ssl::EVP_PKEY_ptr = typedef std::unique_ptr<EVP_PKEY, EVP_PKEY_deleter> |
using oci::ssl::X509_ptr = typedef std::unique_ptr<X509, X509_deleter> |
|
strong |
std::vector< unsigned char > oci::ssl::base64_decode | ( | const std::string & | encoded | ) |
BASE64 decode an encoded string.
std::string oci::ssl::base64_encode | ( | const Data & | data | ) |
std::string oci::ssl::base64_encode | ( | const void * | binary, |
size_t | length | ||
) |
BASE64 encode encrypted data.
EVP_PKEY_ptr oci::ssl::load_public_key | ( | const std::string & | public_key_content | ) |
Create public key BIO from in-memory public key buffer.
std::string oci::ssl::load_public_key_file | ( | const std::string & | public_key_file | ) |
bool oci::ssl::verify | ( | const std::string & | digest, |
const std::string & | message, | ||
const std::string & | public_key_content | ||
) |
Verify a message signed by the private key pair of the provided public key.