From f5f53d20559e63b9ce2cd0a84f8564b5751f3f2c Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 15 Apr 2023 19:29:20 +0000 Subject: Mark sha3_keccakf() as static and remove prototype from header. --- src/lib/libcrypto/sha/sha3.c | 4 ++-- src/lib/libcrypto/sha/sha3_internal.h | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/sha/sha3.c b/src/lib/libcrypto/sha/sha3.c index d246d53ce4..0ef5bf216e 100644 --- a/src/lib/libcrypto/sha/sha3.c +++ b/src/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/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h index 05a02c8e2c..9b5b9e2b6a 100644 --- a/src/lib/libcrypto/sha/sha3_internal.h +++ b/src/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); -- cgit v1.2.3-55-g6feb