CCF
Loading...
Searching...
No Matches
Classes | Functions
ccf::crypto::OpenSSL Namespace Reference

Classes

struct  Unique_BIGNUM
 
struct  Unique_BIO
 
struct  Unique_BN_CTX
 
struct  Unique_EC_GROUP
 
struct  Unique_EC_POINT
 
struct  Unique_ECDSA_SIG
 
struct  Unique_EVP_CIPHER_CTX
 
struct  Unique_EVP_ENCODE_CTX
 
struct  Unique_EVP_MD_CTX
 
struct  Unique_EVP_PKEY
 
struct  Unique_EVP_PKEY_CTX
 
struct  Unique_PKEY
 
struct  Unique_SSL
 
struct  Unique_SSL_CTX
 
class  Unique_SSL_OBJECT
 
struct  Unique_STACK_OF_X509
 
struct  Unique_STACK_OF_X509_EXTENSIONS
 
struct  Unique_X509
 
struct  Unique_X509_CRL
 
struct  Unique_X509_REQ
 
struct  Unique_X509_REQ_DER
 
struct  Unique_X509_STORE
 
struct  Unique_X509_STORE_CTX
 
struct  Unique_X509_TIME
 

Functions

std::string error_string (unsigned long ec)
 Returns the error string from an error code.
 
void CHECK1 (int rc)
 Throws if rc is not 1 and has error.
 
void CHECK0 (int rc)
 Throws if rc is 0 and has error.
 
void CHECKNULL (void *ptr)
 Throws if ptr is null.
 
void CHECKEQUAL (int expect, int actual)
 
void CHECKPOSITIVE (int val)
 
X509 * read_pem (BIO *mem)
 
HashBytes hmac (MDType type, const std::vector< uint8_t > &key, const std::vector< uint8_t > &data)
 
std::vector< uint8_t > hkdf (MDType md_type, size_t length, const std::span< const uint8_t > &ikm, const std::span< const uint8_t > &salt, const std::span< const uint8_t > &info)
 
const EVP_MD * get_md_type (MDType type)
 

Function Documentation

◆ CHECK0()

void ccf::crypto::OpenSSL::CHECK0 ( int  rc)
inline

Throws if rc is 0 and has error.

◆ CHECK1()

void ccf::crypto::OpenSSL::CHECK1 ( int  rc)
inline

Throws if rc is not 1 and has error.

◆ CHECKEQUAL()

void ccf::crypto::OpenSSL::CHECKEQUAL ( int  expect,
int  actual 
)
inline

◆ CHECKNULL()

void ccf::crypto::OpenSSL::CHECKNULL ( void *  ptr)
inline

Throws if ptr is null.

◆ CHECKPOSITIVE()

void ccf::crypto::OpenSSL::CHECKPOSITIVE ( int  val)
inline

◆ error_string()

std::string ccf::crypto::OpenSSL::error_string ( unsigned long  ec)
inline

Returns the error string from an error code.

◆ get_md_type()

const EVP_MD * ccf::crypto::OpenSSL::get_md_type ( MDType  type)
inline

◆ hkdf()

std::vector< uint8_t > ccf::crypto::OpenSSL::hkdf ( MDType  md_type,
size_t  length,
const std::span< const uint8_t > &  ikm,
const std::span< const uint8_t > &  salt,
const std::span< const uint8_t > &  info 
)

◆ hmac()

HashBytes ccf::crypto::OpenSSL::hmac ( MDType  type,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  data 
)

◆ read_pem()

X509 * ccf::crypto::OpenSSL::read_pem ( BIO *  mem)
inline