aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/crypt_burn.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/crypt_burn.c')
-rw-r--r--scripts/crypt_burn.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/crypt_burn.c b/scripts/crypt_burn.c
index 3b05144e8..64eb162c9 100644
--- a/scripts/crypt_burn.c
+++ b/scripts/crypt_burn.c
@@ -104,9 +104,12 @@ int main(int argc, char *argv[])
while (i--)
{
- crypter->encrypt(crypter,
- chunk_create(buffer, sizeof(buffer) / bs * bs),
- chunk_create(iv, crypter->get_iv_size(crypter)), NULL);
+ if (!crypter->encrypt(crypter,
+ chunk_create(buffer, sizeof(buffer) / bs * bs),
+ chunk_create(iv, crypter->get_iv_size(crypter)), NULL))
+ {
+ continue;
+ }
crypter->decrypt(crypter,
chunk_create(buffer, sizeof(buffer) / bs * bs),
chunk_create(iv, crypter->get_iv_size(crypter)), NULL);