aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-14 13:22:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-09-25 18:39:42 +0300
commitcce6a8d7a786a52318487d5e110692be6e24990d (patch)
tree9f59d12585eb4dd27620d841ffc375ec77219109
parent9a3067c30fbd89609036d9fbdc1d93a7a8706abf (diff)
downloadlibmicrohttpd-cce6a8d7a786a52318487d5e110692be6e24990d.tar.gz
libmicrohttpd-cce6a8d7a786a52318487d5e110692be6e24990d.zip
test_sha{256,512_256}: minor fixes
-rw-r--r--src/microhttpd/test_sha256.c4
-rw-r--r--src/microhttpd/test_sha512_256.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/test_sha256.c b/src/microhttpd/test_sha256.c
index 599f425f..287414aa 100644
--- a/src/microhttpd/test_sha256.c
+++ b/src/microhttpd/test_sha256.c
@@ -82,12 +82,12 @@ static const struct data_unit1 data_units1[] = {
82 0x73, 0x82, 0xac, 0x92, 82 0x73, 0x82, 0xac, 0x92,
83 0xca, 0x37, 0xfd, 0x72, 0x8b, 0x0c, 0xd1, 0x6c, 0x55, 0xd5, 0x88, 0x98, 83 0xca, 0x37, 0xfd, 0x72, 0x8b, 0x0c, 0xd1, 0x6c, 0x55, 0xd5, 0x88, 0x98,
84 0x24, 0xfa, 0x16, 0xf2}}, 84 0x24, 0xfa, 0x16, 0xf2}},
85 {D_STR_W_LEN ("abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA" 85 {D_STR_W_LEN ("abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA" \
86 "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"), 86 "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"),
87 {0x27, 0xd1, 0xe8, 0xbc, 0x6a, 0x79, 0x16, 0x83, 0x61, 0x73, 0xa9, 0xa8, 87 {0x27, 0xd1, 0xe8, 0xbc, 0x6a, 0x79, 0x16, 0x83, 0x61, 0x73, 0xa9, 0xa8,
88 0x9b, 0xaf, 0xaf, 0xcf, 88 0x9b, 0xaf, 0xaf, 0xcf,
89 0x47, 0x4d, 0x09, 0xef, 0x6d, 0x50, 0x35, 0x12, 0x25, 0x72, 0xd8, 0x68, 89 0x47, 0x4d, 0x09, 0xef, 0x6d, 0x50, 0x35, 0x12, 0x25, 0x72, 0xd8, 0x68,
90 0xdc, 0x1f, 0xd2, 0xf4}}, 90 0xdc, 0x1f, 0xd2, 0xf4}}
91}; 91};
92 92
93static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]); 93static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]);
diff --git a/src/microhttpd/test_sha512_256.c b/src/microhttpd/test_sha512_256.c
index 1de90c3e..f46e2cf0 100644
--- a/src/microhttpd/test_sha512_256.c
+++ b/src/microhttpd/test_sha512_256.c
@@ -80,7 +80,7 @@ static const struct data_unit1 data_units1[] = {
80 "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"), 80 "abcdefghijklmnopqrstuvwxyzzyxwvutsrqponMLKJIHGFEDCBA"),
81 {0xad, 0xe9, 0x5d, 0x55, 0x3b, 0x9e, 0x45, 0x69, 0xdb, 0x53, 0xa4, 0x04, 81 {0xad, 0xe9, 0x5d, 0x55, 0x3b, 0x9e, 0x45, 0x69, 0xdb, 0x53, 0xa4, 0x04,
82 0x92, 0xe7, 0x87, 0x94, 0xff, 0xc9, 0x98, 0x5f, 0x93, 0x03, 0x86, 0x45, 82 0x92, 0xe7, 0x87, 0x94, 0xff, 0xc9, 0x98, 0x5f, 0x93, 0x03, 0x86, 0x45,
83 0xe1, 0x97, 0x17, 0x72, 0x7c, 0xbc, 0x31, 0x15}}, 83 0xe1, 0x97, 0x17, 0x72, 0x7c, 0xbc, 0x31, 0x15}}
84}; 84};
85 85
86static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]); 86static const size_t units1_num = sizeof(data_units1) / sizeof(data_units1[0]);