This class provides description of SHA-256 helper methods.
More...
#include <sha256.hh>
|
| sha256 () |
| SHA context. More...
|
|
virtual | ~sha256 () |
| Default destructor. More...
|
|
int | generate (const std::vector< unsigned char > p_buffer, std::vector< unsigned char > &p_hash) |
| Receive bytes formated data from the lower layers. More...
|
|
int | generate (const unsigned char *p_buffer, const size_t p_length, std::vector< unsigned char > &p_hash) |
|
This class provides description of SHA-256 helper methods.
◆ sha256()
SHA context.
Default constructor Create a new instance of the sha256 class
◆ ~sha256()
virtual sha256::~sha256 |
( |
| ) |
|
|
inlinevirtual |
◆ generate() [1/2]
int sha256::generate |
( |
const std::vector< unsigned char > |
p_buffer, |
|
|
std::vector< unsigned char > & |
p_hash |
|
) |
| |
|
inline |
Receive bytes formated data from the lower layers.
- Parameters
-
[in] | p_buffer | The data used to generate the SHA-256 hash |
[out] | p_hash | The SHA-256 hash value based of the provided data |
- Returns
- 0 on success, -1 otherwise
- Parameters
-
[in] | p_buffer | The data used to generate the SHA-256 hash |
[in] | The | length of the data buffer |
[out] | p_hash | The SHA-256 hash value based of the provided data |
- Returns
- 0 on success, -1 otherwise
◆ generate() [2/2]
int sha256::generate |
( |
const unsigned char * |
p_buffer, |
|
|
const size_t |
p_length, |
|
|
std::vector< unsigned char > & |
p_hash |
|
) |
| |
|
inline |
◆ _ctx
The documentation for this class was generated from the following file:
- /home/vagrant/TriesAndDelete/etsi_its/framework/include/sha256.hh