Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
MD Class Reference

Helper class to do hashing algorithms via OpenSSL library. More...

#include <OpenSSLAesCcm.hxx>

Static Public Member Functions

static std::string SHA256 (const void *data, size_t len)
 Computes a SHA256 hash of a given data payload.
 

Private Member Functions

 MD ()
 This class cannot be instantiated.
 

Detailed Description

Helper class to do hashing algorithms via OpenSSL library.

Definition at line 124 of file OpenSSLAesCcm.hxx.

Member Function Documentation

◆ SHA256()

static std::string MD::SHA256 ( const void *  data,
size_t  len 
)
inlinestatic

Computes a SHA256 hash of a given data payload.

Parameters
datapointer to the beginning of the data to be hashed.
lenthe number of bytes to be hashed
Returns
SHA256 hash (32 bytes long).

Definition at line 131 of file OpenSSLAesCcm.hxx.


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