diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-24 01:59:36 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-24 01:59:36 +0300 |
commit | 22d9aeb0f3057c43cf7c561bc208c3acec45135e (patch) | |
tree | 2e0eca7350a778a0e9c1011b41eea18429a742b4 /c_implementation/tests/test_sha512_string.c | |
parent | 07d2b7e430e17cceaab2715a816e4182f299f441 (diff) | |
download | arching-kaos-tools-22d9aeb0f3057c43cf7c561bc208c3acec45135e.tar.gz arching-kaos-tools-22d9aeb0f3057c43cf7c561bc208c3acec45135e.tar.bz2 arching-kaos-tools-22d9aeb0f3057c43cf7c561bc208c3acec45135e.zip |
[libakfs] Updates
Diffstat (limited to 'c_implementation/tests/test_sha512_string.c')
-rw-r--r-- | c_implementation/tests/test_sha512_string.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c_implementation/tests/test_sha512_string.c b/c_implementation/tests/test_sha512_string.c index e7b9d21..fbca23c 100644 --- a/c_implementation/tests/test_sha512_string.c +++ b/c_implementation/tests/test_sha512_string.c @@ -8,7 +8,7 @@ typedef struct { long unsigned int sum[8]; } sha512sum; -void shifting_example() +static void shifting_example() { long unsigned int X = 0xf; for ( long unsigned i = 0; i < 64; i=i+4 ) @@ -17,7 +17,7 @@ void shifting_example() } } -void structed_sum() +static void structed_sum() { sha512sum struct_sample = { .sum[0] = 0x921618bc6d9f8059, @@ -37,12 +37,12 @@ void structed_sum() printf("\n"); } -void long_unsigned_example() +static void long_unsigned_example() { printf("hex:\t%#018lx\n",0xffffffffffffffff); } -void char_based_sum() +static void char_based_sum() { char sum_sample[] = "921618bc6d9f8059437c5e0397b13f973ab7c7a7b81f0ca31b70bf448fd800a460b67efda0020088bc97bf7d9da97a9e2ce7b20d46e066462ec44cf60284f9a7"; // printf("Size:\t%08lu\n",sizeof(sum_sample)); |