rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
fw_sha256.h
Go to the documentation of this file.
1
16
17#ifndef RCBENCH_FW_SHA256_H
18#define RCBENCH_FW_SHA256_H
19
20#include <stddef.h>
21#include <stdint.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define FW_SHA256_BYTES 32u
28
29typedef struct {
30 uint32_t h[8];
31 uint64_t bits;
32 uint8_t block[64];
33 uint32_t fill;
35
36void fw_sha256_init(fw_sha256_t *s);
37void fw_sha256_add(fw_sha256_t *s, const void *data, size_t n);
38void fw_sha256_done(fw_sha256_t *s, uint8_t out[FW_SHA256_BYTES]);
39
41void fw_sha256(const void *data, size_t n, uint8_t out[FW_SHA256_BYTES]);
42
43#ifdef __cplusplus
44}
45#endif
46
47#endif /* RCBENCH_FW_SHA256_H */
#define s
Short name for esc_stick_s inside the five stick-class files.
Definition esc_stick_panel_int.h:295
Definition fw_sha256.h:29
uint64_t bits
Definition fw_sha256.h:31
uint32_t fill
Definition fw_sha256.h:33
uint8_t block[64]
Definition fw_sha256.h:32