REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
dcp.h File Reference
#include <cstdint>
#include <cstddef>
#include <string>
#include <array>
#include <stdlib.h>
Include dependency graph for dcp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
struct | utils::sha256 |
struct | utils::sha1 |
Namespaces | |
namespace | utils |
Typedefs | |
using | utils::sha256_t = std::array<uint8_t, 32> |
using | utils::sha1_t = std::array<uint8_t, 20> |
Functions | |
FLASHMEM void | utils::hash_sha256 (const uint8_t *msg, size_t msg_len, uint8_t *out_hash) |
Computes the SHA256 sum of an arbitrary message (large memory segment). | |
FLASHMEM void | utils::hash_sha1 (const uint8_t *msg, size_t msg_len, uint8_t *out_hash) |
Computes the SHA1 sum of an arbitrary message (large memory segment), hardware-accelerated on the Teensy 4. | |
sha256_t | utils::hash_sha256 (const uint8_t *msg, size_t msg_len) |
std::string | utils::sha256_to_string (const utils::sha256_t &hash) |
std::string | utils::sha1_to_string (const utils::sha1_t &hash) |
sha256_t | utils::parse_sha256 (const std::string &hash) |
bool | utils::sha256_test_short (std::string a, std::string b) |