Changeset 7219d3c in rtems


Ignore:
Timestamp:
08/05/22 13:35:15 (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f6a38fb
Parents:
5500232
git-author:
Sebastian Huber <sebastian.huber@…> (08/05/22 13:35:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/10/22 05:51:14)
Message:

libtest: Add T_report_hash_sha256_update()

Update #3716.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/test.h

    r5500232 r7219d3c  
    24652465void T_report_hash_sha256(T_event, const char *);
    24662466
     2467void T_report_hash_sha256_update(char c);
     2468
    24672469void T_check_heap(T_event, const char *);
    24682470
  • cpukit/libtest/t-test-hash-sha256.c

    r5500232 r7219d3c  
    4444
    4545static T_report_hash_sha256_context T_report_hash_sha256_instance;
     46
     47void
     48T_report_hash_sha256_update(char c)
     49{
     50        T_report_hash_sha256_context *ctx;
     51
     52        ctx = &T_report_hash_sha256_instance;
     53        SHA256_Update(&ctx->sha256, &c, sizeof(c));
     54}
    4655
    4756static void
Note: See TracChangeset for help on using the changeset viewer.