aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_degeneralise_spec.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_degeneralise_spec.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 '')
-rw-r--r--libkeccak_degeneralise_spec.322
1 files changed, 11 insertions, 11 deletions
diff --git a/libkeccak_degeneralise_spec.3 b/libkeccak_degeneralise_spec.3
index 7ec2b72..bed40c4 100644
--- a/libkeccak_degeneralise_spec.3
+++ b/libkeccak_degeneralise_spec.3
@@ -5,7 +5,7 @@ libkeccak_degeneralise_spec - Set all specification parameters to automatic
.nf
#include <libkeccak.h>
-int libkeccak_degeneralise_spec(libkeccak_generalised_spec_t *\fIspec\fP, libkeccak_spec_t *\fIoutput_spec\fP);
+int libkeccak_degeneralise_spec(struct libkeccak_generalised_spec *\fIspec\fP, struct libkeccak_spec *\fIoutput_spec\fP);
.fi
.PP
Link with
@@ -30,13 +30,13 @@ function after calling
.BR libkeccak_degeneralise_spec ().
.PP
.nf
-typedef struct libkeccak_generalised_spec {
- long int bitrate; /* bitrate (in bits) */
- long int capacity; /* capacity (in bits) */
- long int output; /* output size (in bits) */
- long int state_size; /* state size (in bits) */
- long int word_size; /* word size (in bits) */
-} libkeccak_generalised_spec_t;
+struct libkeccak_generalised_spec {
+ long int bitrate; /* bitrate (in bits) */
+ long int capacity; /* capacity (in bits) */
+ long int output; /* output size (in bits) */
+ long int state_size; /* state size (in bits) */
+ long int word_size; /* word size (in bits) */
+};
.fi
.SH RETURN VALUES
The
@@ -94,13 +94,13 @@ function cannot fail.
.fi
.SH EXAMPLE
This examples configure a
-.B libkeccak_spec_t
+.B struct libkeccak_spec
to specify settings for Keccak[c = 512]:
.PP
.nf
int r;
-libkeccak_spec_t spec;
-libkeccak_generalised_spec_t gspec;
+struct libkeccak_spec spec;
+struct libkeccak_generalised_spec gspec;
libkeccak_generalised_spec_initialise(&gspec);
gspec.capacity = 512;
if ((r = libkeccak_degeneralise_spec(&gspec, &spec)))