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

Static Public Member Functions

static std::string sha256 (const void *data, size_t len)
 Computes a SHA-256 hash of the given input data.
 

Private Member Functions

 SHAHelper ()
 This class cannot be instantiated.
 

Detailed Description

Definition at line 53 of file CC32xxSha.hxx.

Member Function Documentation

◆ sha256()

static std::string SHAHelper::sha256 ( const void *  data,
size_t  len 
)
inlinestatic

Computes a SHA-256 hash of the given input data.

Parameters
datais the pointer to the input.
lenthe size in bytes of the input. Must be a multiple of 64 bytes.
Returns
a 256-bit (32 byte) string containing the SHA256 hash.

Definition at line 61 of file CC32xxSha.hxx.


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