diff options
Diffstat (limited to 'libkeccak_state_wipe.c')
-rw-r--r-- | libkeccak_state_wipe.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libkeccak_state_wipe.c b/libkeccak_state_wipe.c new file mode 100644 index 0000000..e5c721c --- /dev/null +++ b/libkeccak_state_wipe.c @@ -0,0 +1,15 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +/** + * Wipe sensitive data wihout freeing any data + * + * @param state The state that should be wipe + */ +void +libkeccak_state_wipe(volatile libkeccak_state_t *restrict state) +{ + libkeccak_state_wipe_message(state); + libkeccak_state_wipe_sponge(state); +} |