From 64281c69cecb6a76825fd38ccf253f0c55c00b95 Mon Sep 17 00:00:00 2001 From: Christian Reitter Date: Tue, 4 Jan 2022 20:31:06 +0100 Subject: [PATCH] fix(crypto): fix incorrect sig buffer size --- crypto/tests/test_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/tests/test_check.c b/crypto/tests/test_check.c index 4deb44281..17b51a534 100644 --- a/crypto/tests/test_check.c +++ b/crypto/tests/test_check.c @@ -9305,7 +9305,7 @@ START_TEST(test_zkp_bip340_sign) { uint8_t digest[32] = {0}; uint8_t expected_sig[32] = {0}; uint8_t pub_key[32] = {0}; - uint8_t sig[32] = {0}; + uint8_t sig[64] = {0}; for (size_t i = 0; i < sizeof(tests) / sizeof(*tests); i++) { memcpy(priv_key, fromhex(tests[i].priv_key), 32);