From 15f7f4d31bdc919793479bec83535bfe676171e7 Mon Sep 17 00:00:00 2001 From: Wesley Chan <6881437+Wesley-Chan@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:34:03 +0800 Subject: [PATCH] Upgrade nettle from 3 to 4. --- src/stc-nettle.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stc-nettle.c b/src/stc-nettle.c index ab7876d..c58c2e9 100644 --- a/src/stc-nettle.c +++ b/src/stc-nettle.c @@ -35,7 +35,8 @@ #include #include #include -#include +#include +#include #include "stoken-internal.h" @@ -93,7 +94,7 @@ void stc_sha1_hash(uint8_t *out, ...) sha1_update(&md, in_len, in); } va_end(ap); - sha1_digest(&md, SHA1_DIGEST_SIZE, out); + sha1_digest(&md, out); } void stc_sha256_hash(uint8_t *out, ...) @@ -113,7 +114,7 @@ void stc_sha256_hash(uint8_t *out, ...) sha256_update(&md, in_len, in); } va_end(ap); - sha256_digest(&md, SHA256_DIGEST_SIZE, out); + sha256_digest(&md, out); } int stc_b64_encode(const uint8_t *in, unsigned long len,