#include <sha256.h>
|
| | SHA256 ()=default |
| |
| | ~SHA256 () override |
| |
| void | init () override |
| |
| void | add (const uint8_t *data, size_t len) override |
| |
| void | add (const std::string &data) |
| |
| void | calculate () override |
| |
| size_t | get_size () const override |
| | Get the size of the hash in bytes (32 for SHA256)
|
| |
| void | add (const char *data, size_t len) |
| |
| virtual | ~HashBase ()=default |
| |
| void | add (const char *data, size_t len) |
| |
| void | get_bytes (uint8_t *output) |
| | Retrieve the hash as bytes.
|
| |
| void | get_hex (char *output) |
| | Retrieve the hash as hex characters.
|
| |
| bool | equals_bytes (const uint8_t *expected) |
| | Compare the hash against a provided byte-encoded hash.
|
| |
| bool | equals_hex (const char *expected) |
| | Compare the hash against a provided hex-encoded hash.
|
| |
Definition at line 25 of file sha256.h.
◆ SHA256()
| esphome::sha256::SHA256::SHA256 |
( |
| ) |
|
|
default |
◆ ~SHA256()
| esphome::sha256::SHA256::~SHA256 |
( |
| ) |
|
|
overridedefault |
◆ add() [1/3]
| void esphome::HashBase::add |
( |
const char * | data, |
|
|
size_t | len ) |
|
inline |
◆ add() [2/3]
| void esphome::sha256::SHA256::add |
( |
const std::string & | data | ) |
|
|
inline |
◆ add() [3/3]
| void esphome::sha256::SHA256::add |
( |
const uint8_t * | data, |
|
|
size_t | len ) |
|
overridevirtual |
◆ calculate()
| void esphome::sha256::SHA256::calculate |
( |
| ) |
|
|
overridevirtual |
◆ get_size()
| size_t esphome::sha256::SHA256::get_size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ init()
| void esphome::sha256::SHA256::init |
( |
| ) |
|
|
overridevirtual |
◆ calculated_
| bool esphome::sha256::SHA256::calculated_ {false} |
|
protected |
◆ ctx_ [1/3]
| mbedtls_sha256_context esphome::sha256::SHA256::ctx_ {} |
|
protected |
◆ ctx_ [2/3]
| br_sha256_context esphome::sha256::SHA256::ctx_ {} |
|
protected |
◆ ctx_ [3/3]
| EVP_MD_CTX* esphome::sha256::SHA256::ctx_ {nullptr} |
|
protected |
The documentation for this class was generated from the following files: