From df593680b8adf2ab6924ff38acbeb7b42977c9a0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 6 Jan 2022 00:51:14 +0100 Subject: libblake_decode_hex: verify input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libblake.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libblake.h') diff --git a/libblake.h b/libblake.h index 9f8f3d7..7d818fc 100644 --- a/libblake.h +++ b/libblake.h @@ -12,7 +12,7 @@ #endif void libblake_encode_hex(const void *data, size_t n, char out[/* static n * 2 + 1 */], int uppercase); -size_t libblake_decode_hex(const char *data, size_t n, void *out); +size_t libblake_decode_hex(const char *data, size_t n, void *out, int *validp); #define LIBBLAKE_BLAKE224_OUTPUT_SIZE (224 / 8) #define LIBBLAKE_BLAKE256_OUTPUT_SIZE (256 / 8) -- cgit v1.2.3-70-g09d2