aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_rawshakesum_fd.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-11 16:57:26 +0100
committerMattias Andrée <maandree@kth.se>2019-02-11 16:57:54 +0100
commit3547923d8653d72fe8a6a305107ed2e5dca6577c (patch)
treeaa08e3ca8cb8d7f7b64126a6687af4abbe0994ef /libkeccak_rawshakesum_fd.3
parentSplit most .c files into one per function and flatten file hierarchy (diff)
downloadlibkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.gz
libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.bz2
libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.xz
Deprecate typedefs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libkeccak_rawshakesum_fd.3')
-rw-r--r--libkeccak_rawshakesum_fd.34
1 files changed, 2 insertions, 2 deletions
diff --git a/libkeccak_rawshakesum_fd.3 b/libkeccak_rawshakesum_fd.3
index 8fad150..5678389 100644
--- a/libkeccak_rawshakesum_fd.3
+++ b/libkeccak_rawshakesum_fd.3
@@ -5,7 +5,7 @@ libkeccak_rawshakesum_fd - Calculate a RawSHAKE hashsum of a file
.nf
#include <libkeccak.h>
-int libkeccak_rawshakesum_fd(int \fIfd\fP, libkeccak_state_t *\fIstate\fP, long int \fIsemicapacity\fP, long int \fIoutput\fP, void *\fIhashsum\fP);
+int libkeccak_rawshakesum_fd(int \fIfd\fP, struct libkeccak_state *\fIstate\fP, long int \fIsemicapacity\fP, long int \fIoutput\fP, void *\fIhashsum\fP);
.fi
.PP
Link with
@@ -88,7 +88,7 @@ This example calculates the RawSHAKE256(, 512) hash of the input
from stdin, and prints the hash, in hexadecimal form, to stdout.
.LP
.nf
-libkeccak_state_t state;
+struct libkeccak_state state;
if (libkeccak_rawshakesum_fd(STDIN_FILENO, &state, 256, 512, binhash) < 0)
goto fail;
libkeccak_behex_lower(hexhash, binhash, sizeof(binhash));