diff options
| author | Mattias Andrée <maandree@kth.se> | 2019-02-11 17:56:37 +0100 | 
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2019-02-11 17:56:37 +0100 | 
| commit | 5cee9b9c6394cffee6f31fab00323d9e559f0702 (patch) | |
| tree | d21ba3da234c46b4f3c96e0065eb83d8c3cc8e96 /libkeccak_hmac_wipe.c | |
| parent | Deprecate typedefs (diff) | |
| download | libkeccak-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 'libkeccak_hmac_wipe.c')
| -rw-r--r-- | libkeccak_hmac_wipe.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/libkeccak_hmac_wipe.c b/libkeccak_hmac_wipe.c index 77b4449..1f29b47 100644 --- a/libkeccak_hmac_wipe.c +++ b/libkeccak_hmac_wipe.c @@ -10,10 +10,12 @@  void  libkeccak_hmac_wipe(volatile struct libkeccak_hmac_state *restrict state)  { -	volatile char *restrict key_pads; +	volatile unsigned char *restrict key_pads;  	size_t i, size; +  	key_pads = state->key_opad;  	size = 2 * ((state->key_length + 7) >> 3); +  	libkeccak_state_wipe(&state->sponge);  	for (i = 0; i < size; i++)  		key_pads[i] = 0; | 
