-/* $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)
*
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)
-/* $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)
*
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)