Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::security::MessageDigest Class Referencefinal

Message digest interface based on OPENSSL::CRYPTO. More...

#include <MessageDigest.h>

Inheritance diagram for sese::security::MessageDigest:
sese::NotInstantiable

Public Types

enum class  Type {
  MD5 , SHA1 , SHA256 , SHA384 ,
  SHA512 , SM3
}
 
using InputStream = io::InputStream
 

Public Member Functions

 MessageDigest ()=delete
 
- Public Member Functions inherited from sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

Static Public Member Functions

static std::string digest (Type type, InputStream *input, bool is_cap=false) noexcept
 

Static Private Member Functions

static void digestMD5 (char *str, InputStream *input, bool is_cap) noexcept
 
static void digestSH1 (char *str, InputStream *input, bool is_cap) noexcept
 
static void digestSHA256 (char *str, InputStream *input, bool is_cap) noexcept
 
static void digestSHA384 (char *str, InputStream *input, bool is_cap) noexcept
 
static void digestSHA512 (char *str, InputStream *input, bool is_cap) noexcept
 
static void digestSM3 (char *str, InputStream *input, bool is_cap) noexcept
 

Detailed Description

Message digest interface based on OPENSSL::CRYPTO.

Member Typedef Documentation

◆ InputStream

Member Enumeration Documentation

◆ Type

Enumerator
MD5 
SHA1 
SHA256 
SHA384 
SHA512 
SM3 

Constructor & Destructor Documentation

◆ MessageDigest()

sese::security::MessageDigest::MessageDigest ( )
delete

Member Function Documentation

◆ digest()

std::string sese::security::MessageDigest::digest ( Type type,
InputStream * input,
bool is_cap = false )
staticnoexcept

◆ digestMD5()

void sese::security::MessageDigest::digestMD5 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

◆ digestSH1()

void sese::security::MessageDigest::digestSH1 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

◆ digestSHA256()

void sese::security::MessageDigest::digestSHA256 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

◆ digestSHA384()

void sese::security::MessageDigest::digestSHA384 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

◆ digestSHA512()

void sese::security::MessageDigest::digestSHA512 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

◆ digestSM3()

void sese::security::MessageDigest::digestSM3 ( char * str,
InputStream * input,
bool is_cap )
staticprivatenoexcept

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