rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
24
extern
"C"
{
25
#endif
26
27
#define FW_SHA256_BYTES 32u
28
29
typedef
struct
{
30
uint32_t h[8];
31
uint64_t
bits
;
32
uint8_t
block
[64];
33
uint32_t
fill
;
34
}
fw_sha256_t
;
35
36
void
fw_sha256_init(
fw_sha256_t
*
s
);
37
void
fw_sha256_add(
fw_sha256_t
*
s
,
const
void
*data,
size_t
n);
38
void
fw_sha256_done(
fw_sha256_t
*
s
, uint8_t out[FW_SHA256_BYTES]);
39
41
void
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 */
s
#define s
Short name for esc_stick_s inside the five stick-class files.
Definition
esc_stick_panel_int.h:295
fw_sha256_t
Definition
fw_sha256.h:29
fw_sha256_t::bits
uint64_t bits
Definition
fw_sha256.h:31
fw_sha256_t::fill
uint32_t fill
Definition
fw_sha256.h:33
fw_sha256_t::block
uint8_t block[64]
Definition
fw_sha256.h:32
shared
fwupdate
include
fw_sha256.h
Generated by
1.18.0