diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-11 07:33:16 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-11 07:33:16 +0100 |
commit | 46175e0dc6ae90a99049b78f05a8d76675013058 (patch) | |
tree | 998356ca0a3d7765bed1d4afc9e9144270e1ecdc /c/sha3.h | |
parent | bump year (diff) | |
download | sha3sum-46175e0dc6ae90a99049b78f05a8d76675013058.tar.gz sha3sum-46175e0dc6ae90a99049b78f05a8d76675013058.tar.bz2 sha3sum-46175e0dc6ae90a99049b78f05a8d76675013058.tar.xz |
namespace c version
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | c/sha3.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -46,13 +46,13 @@ * @param capacity The capacity * @param output The output size */ -extern void initialise(long bitrate, long capacity, long output); +extern void sha3_initialise(long bitrate, long capacity, long output); /** * Dispose of the Keccak sponge */ -extern void dispose(void); +extern void sha3_dispose(void); /** @@ -61,7 +61,7 @@ extern void dispose(void); * @param msg The partial message * @param msglen The length of the partial message */ -extern void update(byte* restrict msg, long msglen); +extern void sha3_update(byte* restrict msg, long msglen); /** @@ -72,7 +72,7 @@ extern void update(byte* restrict msg, long msglen); * @param withReturn Whether to return the hash instead of just do a quick squeeze phrase and return {@code null} * @return The hash sum, or {@code null} if <tt>withReturn</tt> is {@code false} */ -extern byte* digest(byte* restrict msg, long msglen, boolean withReturn); +extern byte* sha3_digest(byte* restrict msg, long msglen, boolean withReturn); /** @@ -80,7 +80,7 @@ extern byte* digest(byte* restrict msg, long msglen, boolean withReturn); * * @param times The number of rounds */ -extern void simpleSqueeze(long times); +extern void sha3_simpleSqueeze(long times); /** @@ -88,7 +88,7 @@ extern void simpleSqueeze(long times); * * @param times The number of digests */ -extern void fastSqueeze(long times); +extern void sha3_fastSqueeze(long times); /** @@ -96,5 +96,5 @@ extern void fastSqueeze(long times); * * @return The hash sum */ -extern byte* squeeze(void); +extern byte* sha3_squeeze(void); |