projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing "else".
[openssl.git]
/
crypto
/
rsa
/
rsa_oaep_test.c
diff --git
a/crypto/rsa/rsa_oaep_test.c
b/crypto/rsa/rsa_oaep_test.c
index 4dd078ddbeb7b56e602d27ff33cf8179060dc846..061c99a6c4df5b76e4f683cca539e51bdcf03435 100644
(file)
--- a/
crypto/rsa/rsa_oaep_test.c
+++ b/
crypto/rsa/rsa_oaep_test.c
@@
-269,12
+269,10
@@
int main()
RSA_PKCS1_OAEP_PADDING);
if (num != plen || memcmp(ptext, ptext_ex, num) != 0)
{
RSA_PKCS1_OAEP_PADDING);
if (num != plen || memcmp(ptext, ptext_ex, num) != 0)
{
- printf("OAEP decryption failed!\n");
+ printf("OAEP decryption
(encrypted data)
failed!\n");
err=1;
err=1;
- goto next;
}
}
-
- if (memcmp(ctext, ctext_ex, num) == 0)
+ else if (memcmp(ctext, ctext_ex, num) == 0)
{
printf("OAEP test vector %d passed!\n", v);
goto next;
{
printf("OAEP test vector %d passed!\n", v);
goto next;