diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2023-04-15 19:29:21 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2023-04-15 19:29:21 +0000 |
commit | b40207f20346484ffafa8b585e260f6476ce55f5 (patch) | |
tree | a0f49fcc784b697e3537941c19bc91958befe52d /lib/libcrypto | |
parent | 4e16f7006d3f906a359f3e254bef6030beb7db78 (diff) |
Mark sha3_keccakf() as static and remove prototype from header.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/sha/sha3.c | 4 | ||||
-rw-r--r-- | 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); |