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;
- 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;