forked from Imagelibrary/rtems
@@ -2464,6 +2464,8 @@ T_thread_switch_log *T_thread_switch_record_10(T_thread_switch_log_10 *);
|
||||
|
||||
void T_report_hash_sha256(T_event, const char *);
|
||||
|
||||
void T_report_hash_sha256_update(char c);
|
||||
|
||||
void T_check_heap(T_event, const char *);
|
||||
|
||||
#ifdef __rtems__
|
||||
|
||||
@@ -44,6 +44,15 @@ typedef struct {
|
||||
|
||||
static T_report_hash_sha256_context T_report_hash_sha256_instance;
|
||||
|
||||
void
|
||||
T_report_hash_sha256_update(char c)
|
||||
{
|
||||
T_report_hash_sha256_context *ctx;
|
||||
|
||||
ctx = &T_report_hash_sha256_instance;
|
||||
SHA256_Update(&ctx->sha256, &c, sizeof(c));
|
||||
}
|
||||
|
||||
static void
|
||||
T_report_hash_sha256_putchar(int c, void *arg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user