aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_state_copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libkeccak_state_copy.c')
-rw-r--r--libkeccak_state_copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libkeccak_state_copy.c b/libkeccak_state_copy.c
index 76672d2..97a76ef 100644
--- a/libkeccak_state_copy.c
+++ b/libkeccak_state_copy.c
@@ -10,9 +10,9 @@
* @return Zero on success, -1 on error
*/
int
-libkeccak_state_copy(libkeccak_state_t *restrict dest, const libkeccak_state_t *restrict src)
+libkeccak_state_copy(struct libkeccak_state *restrict dest, const struct libkeccak_state *restrict src)
{
- memcpy(dest, src, sizeof(libkeccak_state_t));
+ memcpy(dest, src, sizeof(struct libkeccak_state));
dest->M = malloc(src->mlen * sizeof(char));
if (!dest->M)
return -1;