1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

blowfish-test: Return different values for different errors

This commit is contained in:
Diego Biurrun 2016-05-17 20:44:04 +02:00
parent b84f3a4003
commit a86ef80494

View File

@ -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");