summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2023-04-15 19:29:20 +0000
committerjsing <>2023-04-15 19:29:20 +0000
commitf5f53d20559e63b9ce2cd0a84f8564b5751f3f2c (patch)
tree00bb71e8e81f83604013890b0ca24acb17f84004 /src/lib
parenta866975c1f7d904a6cab7d3f16fe3af292d7cf1a (diff)
downloadopenbsd-f5f53d20559e63b9ce2cd0a84f8564b5751f3f2c.tar.gz
openbsd-f5f53d20559e63b9ce2cd0a84f8564b5751f3f2c.tar.bz2
openbsd-f5f53d20559e63b9ce2cd0a84f8564b5751f3f2c.zip
Mark sha3_keccakf() as static and remove prototype from header.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/sha/sha3.c4
-rw-r--r--src/lib/libcrypto/sha/sha3_internal.h4
2 files changed, 3 insertions, 5 deletions
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 @@
1/* $OpenBSD: sha3.c,v 1.11 2023/04/15 19:27:54 jsing Exp $ */ 1/* $OpenBSD: sha3.c,v 1.12 2023/04/15 19:29:20 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -51,7 +51,7 @@ static const int sha3_keccakf_piln[24] = {
51 15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1 51 15, 23, 19, 13, 12, 2, 20, 14, 22, 9, 6, 1
52}; 52};
53 53
54void 54static void
55sha3_keccakf(uint64_t st[25]) 55sha3_keccakf(uint64_t st[25])
56{ 56{
57 uint64_t t, bc[5]; 57 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 @@
1/* $OpenBSD: sha3_internal.h,v 1.9 2023/04/15 19:22:34 jsing Exp $ */ 1/* $OpenBSD: sha3_internal.h,v 1.10 2023/04/15 19:29:20 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -63,8 +63,6 @@ typedef struct {
63 int pt, rsiz, mdlen; 63 int pt, rsiz, mdlen;
64} sha3_ctx; 64} sha3_ctx;
65 65
66void sha3_keccakf(uint64_t st[25]);
67
68int sha3_init(sha3_ctx *c, int mdlen); 66int sha3_init(sha3_ctx *c, int mdlen);
69int sha3_update(sha3_ctx *c, const void *data, size_t len); 67int sha3_update(sha3_ctx *c, const void *data, size_t len);
70int sha3_final(void *md, sha3_ctx *c); 68int sha3_final(void *md, sha3_ctx *c);