diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-08-05 15:35:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-08-10 07:51:14 +0200 |
commit | 7219d3c0e9639463ec26e5035b6046b1b9964ce6 (patch) | |
tree | 9505cf8f013832615a11c9dafa9b904891b22fbc /cpukit/libtest | |
parent | libdl: Refactor shared code in ARM and AArch64 (diff) | |
download | rtems-7219d3c0e9639463ec26e5035b6046b1b9964ce6.tar.bz2 |
libtest: Add T_report_hash_sha256_update()
Update #3716.
Diffstat (limited to 'cpukit/libtest')
-rw-r--r-- | cpukit/libtest/t-test-hash-sha256.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/libtest/t-test-hash-sha256.c b/cpukit/libtest/t-test-hash-sha256.c index 32e946b4cf..a023d3969c 100644 --- a/cpukit/libtest/t-test-hash-sha256.c +++ b/cpukit/libtest/t-test-hash-sha256.c @@ -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) { |