On Tue, Jun 04, 2019 at 12:46:07AM +0200, Sebastian Andrzej Siewior wrote:
> 
> So if I decoded it right, it does
> 
> |     fbuf = sha1("The magic words are squeamish ossifrage."); /* 0xbf, 0xf0, 
> 0x04 … */
> |     flen = RSA_public_encrypt(20, fbuf, tobuf, )
> |     /* flen -> 128 */
> |     r = RSA_private_decrypt(128, tobuf, tobuf2, )
> 
> before the change, RSA_private_decrypt() used to return an error
>      r -> -1, rsa routines|rsa_ossl_private_decrypt|padding check failed>
> 
> after that, it return `20' and probably passes. Would it be likely that
> m2crypto tested that an openssl bug existed which got fixed?

I have no idea what they're testing, but I expect that if you just
encrypt something, that decryting that should work.


Kurt

Reply via email to