1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #20165 from fzi-haxel/pr/tests-hashes-sha512-fix

tests/unittests/tests-hashes: fix wrong string length
This commit is contained in:
benpicco 2023-12-11 14:39:58 +00:00 committed by GitHub
commit fd3d92f1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,7 +341,7 @@ static void test_hashes_sha512_hash_sequence_binary(void)
static void test_hashes_sha512_hash_update_twice(void) static void test_hashes_sha512_hash_update_twice(void)
{ {
static const char *teststring = "abcdef"; static const char teststring[] = "abcdef";
static uint8_t hash_update_once[SHA512_DIGEST_LENGTH]; static uint8_t hash_update_once[SHA512_DIGEST_LENGTH];
static uint8_t hash_update_twice[SHA512_DIGEST_LENGTH]; static uint8_t hash_update_twice[SHA512_DIGEST_LENGTH];