Commit 1ca383c8 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit 'a86ef804'

* commit 'a86ef804':
  blowfish-test: Return different values for different errors
Merged-by: 's avatarClément Bœsch <clement@stupeflix.com>
parents 2c45254a a86ef804
......@@ -174,13 +174,13 @@ int main(void)
av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 0);
if (tmptext_l[i] != ciphertext_l[i] || tmptext_r[i] != ciphertext_r[i]) {
printf("Test encryption failed.\n");
return 1;
return 2;
}
av_blowfish_crypt_ecb(&ctx, &tmptext_l[i], &tmptext_r[i], 1);
if (tmptext_l[i] != plaintext_l[i] || tmptext_r[i] != plaintext_r[i]) {
printf("Test decryption failed.\n");
return 1;
return 3;
}
}
printf("Test encryption/decryption success.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment