MySQL 8.3.0
Source Code Documentation
oci::ssl Namespace Reference

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...
 

Typedef Documentation

◆ ASN1_TIME_ptr

using oci::ssl::ASN1_TIME_ptr = typedef std::unique_ptr<ASN1_TIME, ASN1_TIME_deleter>

◆ BIO_ptr

using oci::ssl::BIO_ptr = typedef std::unique_ptr<BIO, BIO_deleter>

◆ EVP_MD_CTX_ptr

using oci::ssl::EVP_MD_CTX_ptr = typedef std::unique_ptr<EVP_MD_CTX, EVP_MD_CTX_deleter>

◆ EVP_PKEY_ptr

using oci::ssl::EVP_PKEY_ptr = typedef std::unique_ptr<EVP_PKEY, EVP_PKEY_deleter>

◆ X509_ptr

using oci::ssl::X509_ptr = typedef std::unique_ptr<X509, X509_deleter>

Enumeration Type Documentation

◆ Algorithm

enum class oci::ssl::Algorithm
strong
Enumerator
SHA_1 
SHA_256 

Function Documentation

◆ base64_decode()

std::vector< unsigned char > oci::ssl::base64_decode ( const std::string &  encoded)

BASE64 decode an encoded string.

◆ base64_encode() [1/2]

std::string oci::ssl::base64_encode ( const Data data)

◆ base64_encode() [2/2]

std::string oci::ssl::base64_encode ( const void *  binary,
size_t  length 
)

BASE64 encode encrypted data.

◆ load_public_key()

EVP_PKEY_ptr oci::ssl::load_public_key ( const std::string &  public_key_content)

Create public key BIO from in-memory public key buffer.

◆ load_public_key_file()

std::string oci::ssl::load_public_key_file ( const std::string &  public_key_file)

◆ verify()

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.