From 8e11058ee40f2c021be7e501dc0ed78d750d921d Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 15 Apr 2023 19:29:20 +0000 Subject: [PATCH] Mark sha3_keccakf() as static and remove prototype from header. --- lib/libcrypto/sha/sha3.c | 4 ++-- lib/libcrypto/sha/sha3_internal.h | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/libcrypto/sha/sha3.c b/lib/libcrypto/sha/sha3.c index d246d53ce44..0ef5bf216e4 100644 --- a/lib/libcrypto/sha/sha3.c +++ b/lib/libcrypto/sha/sha3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha3.c,v 1.11 2023/04/15 19:27:54 jsing Exp $ */ +/* $OpenBSD: sha3.c,v 1.12 2023/04/15 19:29:20 jsing Exp $ */ /* * The MIT License (MIT) * @@ -51,7 +51,7 @@ static const int sha3_keccakf_piln[24] = { 15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1 }; -void +static void sha3_keccakf(uint64_t st[25]) { uint64_t t, bc[5]; diff --git a/lib/libcrypto/sha/sha3_internal.h b/lib/libcrypto/sha/sha3_internal.h index 05a02c8e2c1..9b5b9e2b6af 100644 --- a/lib/libcrypto/sha/sha3_internal.h +++ b/lib/libcrypto/sha/sha3_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sha3_internal.h,v 1.9 2023/04/15 19:22:34 jsing Exp $ */ +/* $OpenBSD: sha3_internal.h,v 1.10 2023/04/15 19:29:20 jsing Exp $ */ /* * The MIT License (MIT) * @@ -63,8 +63,6 @@ typedef struct { int pt, rsiz, mdlen; } sha3_ctx; -void sha3_keccakf(uint64_t st[25]); - int sha3_init(sha3_ctx *c, int mdlen); int sha3_update(sha3_ctx *c, const void *data, size_t len); int sha3_final(void *md, sha3_ctx *c); -- 2.20.1