summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/sha/sha3.c')
-rw-r--r--src/lib/libcrypto/sha/sha3.c14
1 files changed, 1 insertions, 13 deletions
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 @@
1/* $OpenBSD: sha3.c,v 1.12 2023/04/15 19:29:20 jsing Exp $ */ 1/* $OpenBSD: sha3.c,v 1.13 2023/04/15 19:30:31 jsing Exp $ */
2/* 2/*
3 * The MIT License (MIT) 3 * The MIT License (MIT)
4 * 4 *
@@ -164,18 +164,6 @@ sha3_final(void *md, sha3_ctx *c)
164 return 1; 164 return 1;
165} 165}
166 166
167void *
168sha3(const void *in, size_t inlen, void *md, int mdlen)
169{
170 sha3_ctx sha3;
171
172 sha3_init(&sha3, mdlen);
173 sha3_update(&sha3, in, inlen);
174 sha3_final(md, &sha3);
175
176 return md;
177}
178
179/* SHAKE128 and SHAKE256 extensible-output functionality. */ 167/* SHAKE128 and SHAKE256 extensible-output functionality. */
180void 168void
181shake_xof(sha3_ctx *c) 169shake_xof(sha3_ctx *c)