10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::crypto::libcrypto Namespace Reference

Detailed Description

libcrypto based implementations of cryptography services.

Classes

class  AsymmetricMessageDigest
 Libcrypto-implementation of asymmetric tenduke::crypto::MessageDigestVerifier. More...
 
class  BigNumber
 A BigNumber, RAII wrapper of libcrypto BIGNUM. More...
 
class  LibcryptoKey
 Libcrypto-implementation of a public key definition. More...
 
class  LibCryptoMessageDigest
 Libcrypto-implementation of tenduke::crypto::MessageDigest. More...
 
class  LibcryptoMessageDigestFactory
 Libcrypto-implementation of ‘tenduke::crypto::MessageDigestFactory’. More...
 
class  LibcryptoPrivateKey
 Libcrypto-implementation of a private key definition. More...
 
class  LibcryptoPublicKey
 Libcrypto-implementation of a public key definition. More...
 
class  LibcryptoRSAKeyFactory
 Libcrypto implementation of tenduke::crypto::RSAKeyFactory. More...
 
class  PublicKeyToPEM
 Utility service to convert Libcrypto public key (EVP_PKEY) to PEM. More...
 

Functions

crypto::CryptoException createLibcryptoException (const std::string &errorCode, const std::string &messageBody)
 Utility function to create tenduke::crypto::CryptoException from libcrypto errors.
 
std::string mapMessageDigestAlgorithm (tenduke::crypto::MessageDigest::Algorithm algorithm)
 Maps tenduke::crypto::MessageDigest::Algorithm to algorithm understood by libcrypto.
 

Variables

const char *const ALGORITHM_SHA256 = "sha256"
 Libcrypto name for SHA256.
 

Function Documentation

◆ createLibcryptoException()

xdcrypto::CryptoException tenduke::crypto::libcrypto::createLibcryptoException ( const std::string &  errorCode,
const std::string &  messageBody 
)

Utility function to create tenduke::crypto::CryptoException from libcrypto errors.

NOTE: Call this immediately after the error, this uses ERR_get_error() internally.

Parameters
errorCode-
messageBody-

◆ mapMessageDigestAlgorithm()

std::string tenduke::crypto::libcrypto::mapMessageDigestAlgorithm ( tenduke::crypto::MessageDigest::Algorithm  algorithm)

Maps tenduke::crypto::MessageDigest::Algorithm to algorithm understood by libcrypto.

Parameters
algorithm-
Returns
-