aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-02-24 01:37:27 -0500
committerPaul Duncan <pabs@pablotron.org>2024-02-24 01:37:27 -0500
commitc32ff4ab86b90edb9b3b481a9dded45d742c2418 (patch)
tree4cdad61b088d80b8da18e2f3000cde0e4d51af2a
parent6f5c0655d951754ec30fe6e0004b9c0c996a13c5 (diff)
downloadsha3-c32ff4ab86b90edb9b3b481a9dded45d742c2418.tar.bz2
sha3-c32ff4ab86b90edb9b3b481a9dded45d742c2418.zip
sha3.h: revert cshake{128,256} prototype changes
-rw-r--r--sha3.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sha3.h b/sha3.h
index a64f6b1..93f3bdc 100644
--- a/sha3.h
+++ b/sha3.h
@@ -706,7 +706,7 @@ void hmac_sha3_512_final(hmac_sha3_t *ctx, uint8_t mac[64]);
* @param[out] xof SHAKE128 [XOF][] context.
*
* Example:
- * @snippet{trimleft} 06-all/all-fns.c shake128_xof
+ * @snippet{trimleft} 06-all/all-fns.c shake128_ctx
*
* [xof]: https://en.wikipedia.org/wiki/Extendable-output_function
* "Extendable-Output Function (XOF)"
@@ -728,7 +728,7 @@ void shake128_init(sha3_xof_t * const xof);
* @return True if data was absorbed, and false otherwise (e.g., if context has already been squeezed).
*
* Example:
- * @snippet{trimleft} 06-all/all-fns.c shake128_xof
+ * @snippet{trimleft} 06-all/all-fns.c shake128_ctx
*
* [xof]: https://en.wikipedia.org/wiki/Extendable-output_function
* "Extendable-Output Function (XOF)"
@@ -748,7 +748,7 @@ _Bool shake128_absorb(sha3_xof_t *xof, const uint8_t *msg, const size_t len);
* @param[in] len Destination buffer length, in bytes.
*
* Example:
- * @snippet{trimleft} 06-all/all-fns.c shake128_xof
+ * @snippet{trimleft} 06-all/all-fns.c shake128_ctx
*
* [xof]: https://en.wikipedia.org/wiki/Extendable-output_function
* "Extendable-Output Function (XOF)"
@@ -960,7 +960,7 @@ void cshake256(const cshake_params_t params, const uint8_t *src, const size_t sr
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-void cshake128_init(sha3_xof_t *xof, const cshake_params_t params);
+void cshake128_xof_init(sha3_xof_t *xof, const cshake_params_t params);
/**
* @brief Absorb data into cSHAKE128 [XOF][] context.
@@ -988,7 +988,7 @@ void cshake128_init(sha3_xof_t *xof, const cshake_params_t params);
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-_Bool cshake128_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
+_Bool cshake128_xof_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
/**
* @brief Squeeze bytes from cSHAKE128 [XOF][] context.
@@ -1014,7 +1014,7 @@ _Bool cshake128_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-void cshake128_squeeze(sha3_xof_t *xof, uint8_t *dst, const size_t len);
+void cshake128_xof_squeeze(sha3_xof_t *xof, uint8_t *dst, const size_t len);
/**
* @brief Initialize cSHAKE256 [XOF][] context.
@@ -1041,7 +1041,7 @@ void cshake128_squeeze(sha3_xof_t *xof, uint8_t *dst, const size_t len);
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-void cshake256_init(sha3_xof_t *xof, const cshake_params_t params);
+void cshake256_xof_init(sha3_xof_t *xof, const cshake_params_t params);
/**
* @brief Absorb data into cSHAKE256 [XOF][] context.
@@ -1069,7 +1069,7 @@ void cshake256_init(sha3_xof_t *xof, const cshake_params_t params);
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-_Bool cshake256_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
+_Bool cshake256_xof_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
/**
* @brief Squeeze bytes from cSHAKE256 [XOF][] context.
@@ -1095,7 +1095,7 @@ _Bool cshake256_absorb(sha3_xof_t *xof, const uint8_t *src, const size_t len);
* [800-185]: https://csrc.nist.gov/pubs/sp/800/185/final
* "SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash"
*/
-void cshake256_squeeze(sha3_xof_t *xof, uint8_t *dst, const size_t len);
+void cshake256_xof_squeeze(sha3_xof_t *xof, uint8_t *dst, const size_t len);
/**
* @defgroup kmac KMAC