Add a return value to crypter_t.decrypt()

This commit is contained in:
Martin Willi committed 2012-07-16 14:53:38 +02:00
1 parent e35abbe588
commit 3b96189a2a
17 files changed
+72 -35

No files matched your search

+6 -3
View File
@@ -110,9 +110,12 @@ int main(int argc, char *argv[])
{
continue;
}
crypter->decrypt(crypter,
chunk_create(buffer, sizeof(buffer) / bs * bs),
chunk_create(iv, crypter->get_iv_size(crypter)), NULL);
if (!crypter->decrypt(crypter,
chunk_create(buffer, sizeof(buffer) / bs * bs),
chunk_create(iv, crypter->get_iv_size(crypter)), NULL))
{
continue;
}
if (limit && ++i == limit)
{
break;