Decrypt test vector data even if previous decryption failed to get
authorUlf Möller <ulf@openssl.org>
Wed, 28 Apr 1999 22:16:54 +0000 (22:16 +0000)
committerUlf Möller <ulf@openssl.org>
Wed, 28 Apr 1999 22:16:54 +0000 (22:16 +0000)
better diagnostics.

crypto/rsa/rsa_oaep_test.c

index 4dd078d..588e7ba 100644 (file)
@@ -269,9 +269,8 @@ 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)
            }
   
        if (memcmp(ctext, ctext_ex, num) == 0)