external: Fix resetting the state

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2015-05-04 18:10:30 +02:00
parent 244881b87d
commit a4cecf59d5

View File

@@ -98,7 +98,7 @@ bcrypt_hash(uint8_t *sha2pass, uint8_t *sha2salt, uint8_t *out)
/* zap */
BURN_BUFFER(ciphertext, sizeof(ciphertext));
BURN_BUFFER(cdata, sizeof(cdata));
BURN_BUFFER(&state, sizeof(state));
ZERO_STRUCT(state);
}
int