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

Go to the source code of this file.
Namespaces | |
namespace | utils |
Functions | |
uint32_t | utils::rotr (uint32_t x, uint32_t n) |
uint32_t | utils::ch (uint32_t x, uint32_t y, uint32_t z) |
uint32_t | utils::maj (uint32_t x, uint32_t y, uint32_t z) |
uint32_t | utils::sigma0 (uint32_t x) |
uint32_t | utils::sigma1 (uint32_t x) |
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) |
Variables | |
constexpr std::array< uint32_t, 64 > | utils::K |
constexpr std::array< uint32_t, 4 > | utils::H1 = {0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476} |