TrinityCore
Trinity::Crypto::RsaSignature::HMAC_SHA256 Class Reference

#include <RSA.h>

+ Inheritance diagram for Trinity::Crypto::RsaSignature::HMAC_SHA256:

Public Member Functions

 HMAC_SHA256 (uint8 const *key, size_t keyLength)
 
std::unique_ptr< EVP_MD, EVP_MD_DeleterGetGenerator () const override
 
void PostInitCustomizeContext (EVP_MD_CTX *ctx) override
 
- Public Member Functions inherited from Trinity::Crypto::RsaSignature::DigestGenerator
virtual ~DigestGenerator ()=default
 
virtual std::unique_ptr< EVP_MD, EVP_MD_DeleterGetGenerator () const =0
 
virtual void PostInitCustomizeContext (EVP_MD_CTX *ctx)=0
 

Private Attributes

uint8 const * _key
 
size_t _keyLength
 

Detailed Description

Definition at line 67 of file RSA.h.

Constructor & Destructor Documentation

◆ HMAC_SHA256()

Trinity::Crypto::RsaSignature::HMAC_SHA256::HMAC_SHA256 ( uint8 const *  key,
size_t  keyLength 
)
inlineexplicit

Definition at line 70 of file RSA.h.

Member Function Documentation

◆ GetGenerator()

std::unique_ptr< EVP_MD, RsaSignature::DigestGenerator::EVP_MD_Deleter > Trinity::Crypto::RsaSignature::HMAC_SHA256::GetGenerator ( ) const
overridevirtual

Implements Trinity::Crypto::RsaSignature::DigestGenerator.

Definition at line 368 of file RSA.cpp.

◆ PostInitCustomizeContext()

void Trinity::Crypto::RsaSignature::HMAC_SHA256::PostInitCustomizeContext ( EVP_MD_CTX *  ctx)
overridevirtual

Implements Trinity::Crypto::RsaSignature::DigestGenerator.

Definition at line 373 of file RSA.cpp.

Member Data Documentation

◆ _key

uint8 const* Trinity::Crypto::RsaSignature::HMAC_SHA256::_key
private

Definition at line 82 of file RSA.h.

◆ _keyLength

size_t Trinity::Crypto::RsaSignature::HMAC_SHA256::_keyLength
private

Definition at line 83 of file RSA.h.


The documentation for this class was generated from the following files: