diff options
| author | jsing <> | 2023-04-15 19:29:20 +0000 |
|---|---|---|
| committer | jsing <> | 2023-04-15 19:29:20 +0000 |
| commit | 381963737afddc578047e2ddb396b26e46053de6 (patch) | |
| tree | 00bb71e8e81f83604013890b0ca24acb17f84004 /src | |
| parent | 419fac83c522f91f0de710533df00c3bbebaecb4 (diff) | |
| download | openbsd-381963737afddc578047e2ddb396b26e46053de6.tar.gz openbsd-381963737afddc578047e2ddb396b26e46053de6.tar.bz2 openbsd-381963737afddc578047e2ddb396b26e46053de6.zip | |
Mark sha3_keccakf() as static and remove prototype from header.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/sha/sha3.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/sha3_internal.h | 4 |
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 | ||
| 54 | void | 54 | static void |
| 55 | sha3_keccakf(uint64_t st[25]) | 55 | sha3_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 | ||
| 66 | void sha3_keccakf(uint64_t st[25]); | ||
| 67 | |||
| 68 | int sha3_init(sha3_ctx *c, int mdlen); | 66 | int sha3_init(sha3_ctx *c, int mdlen); |
| 69 | int sha3_update(sha3_ctx *c, const void *data, size_t len); | 67 | int sha3_update(sha3_ctx *c, const void *data, size_t len); |
| 70 | int sha3_final(void *md, sha3_ctx *c); | 68 | int sha3_final(void *md, sha3_ctx *c); |
