提交 e9b9fa18 编写于 作者: U Ulf Möller

Decrypt test vector data even if previous decryption failed to get

better diagnostics.
上级 d10c5c22
...@@ -269,9 +269,8 @@ int main() ...@@ -269,9 +269,8 @@ int main()
RSA_PKCS1_OAEP_PADDING); RSA_PKCS1_OAEP_PADDING);
if (num != plen || memcmp(ptext, ptext_ex, num) != 0) 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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册