aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_state_wipe_message.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-11 17:56:37 +0100
committerMattias Andrée <maandree@kth.se>2019-02-11 17:56:37 +0100
commit5cee9b9c6394cffee6f31fab00323d9e559f0702 (patch)
treed21ba3da234c46b4f3c96e0065eb83d8c3cc8e96 /libkeccak_state_wipe_message.c
parentDeprecate typedefs (diff)
downloadlibkeccak-5cee9b9c6394cffee6f31fab00323d9e559f0702.tar.gz
libkeccak-5cee9b9c6394cffee6f31fab00323d9e559f0702.tar.bz2
libkeccak-5cee9b9c6394cffee6f31fab00323d9e559f0702.tar.xz
General improvements
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libkeccak_state_wipe_message.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkeccak_state_wipe_message.c b/libkeccak_state_wipe_message.c
index 115320e..026bc8e 100644
--- a/libkeccak_state_wipe_message.c
+++ b/libkeccak_state_wipe_message.c
@@ -10,8 +10,9 @@
void
libkeccak_state_wipe_message(volatile struct libkeccak_state *restrict state)
{
- volatile char *restrict M = state->M;
+ volatile unsigned char *restrict M = state->M;
size_t i;
+
for (i = 0; i < state->mptr; i++)
M[i] = 0;
}