summaryrefslogtreecommitdiff
path: root/scripts/crypt_burn.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/crypt_burn.c')
-rw-r--r--scripts/crypt_burn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/crypt_burn.c b/scripts/crypt_burn.c
index 449364a1a..9633568cd 100644
--- a/scripts/crypt_burn.c
+++ b/scripts/crypt_burn.c
@@ -89,6 +89,7 @@ int main(int argc, char *argv[])
break;
}
}
+ aead->destroy(aead);
}
else
{
@@ -101,7 +102,7 @@ int main(int argc, char *argv[])
}
bs = crypter->get_block_size(crypter);
- while (i--)
+ while (TRUE)
{
if (!crypter->encrypt(crypter,
chunk_create(buffer, sizeof(buffer) / bs * bs),
@@ -120,6 +121,7 @@ int main(int argc, char *argv[])
break;
}
}
+ crypter->destroy(crypter);
}
return 0;
}