From 96807686344989d5ad99a653e9d43c4e8b89c77a Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 15 Apr 2023 19:30:31 +0000 Subject: Remove sha3() function, which will not be used or exposed. --- src/lib/libcrypto/sha/sha3.c | 14 +------------- src/lib/libcrypto/sha/sha3_internal.h | 4 +--- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'src/lib/libcrypto') diff --git a/src/lib/libcrypto/sha/sha3.c b/src/lib/libcrypto/sha/sha3.c index 0ef5bf216e..c775e57ea3 100644 --- a/src/lib/libcrypto/sha/sha3.c +++ b/src/lib/libcrypto/sha/sha3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sha3.c,v 1.12 2023/04/15 19:29:20 jsing Exp $ */ +/* $OpenBSD: sha3.c,v 1.13 2023/04/15 19:30:31 jsing Exp $ */ /* * The MIT License (MIT) * @@ -164,18 +164,6 @@ sha3_final(void *md, sha3_ctx *c) return 1; } -void * -sha3(const void *in, size_t inlen, void *md, int mdlen) -{ - sha3_ctx sha3; - - sha3_init(&sha3, mdlen); - sha3_update(&sha3, in, inlen); - sha3_final(md, &sha3); - - return md; -} - /* SHAKE128 and SHAKE256 extensible-output functionality. */ void shake_xof(sha3_ctx *c) diff --git a/src/lib/libcrypto/sha/sha3_internal.h b/src/lib/libcrypto/sha/sha3_internal.h index 9b5b9e2b6a..7aaa016050 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.10 2023/04/15 19:29:20 jsing Exp $ */ +/* $OpenBSD: sha3_internal.h,v 1.11 2023/04/15 19:30:31 jsing Exp $ */ /* * The MIT License (MIT) * @@ -67,8 +67,6 @@ 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); -void *sha3(const void *in, size_t inlen, void *md, int mdlen); - /* SHAKE128 and SHAKE256 extensible-output functions. */ #define shake128_init(c) sha3_init(c, 16) #define shake256_init(c) sha3_init(c, 32) -- cgit v1.2.3-55-g6feb