开发者

Can buffers in RSA_private_decrypt/RSA_public_encrypt overlap?

Can buffers in openssl's RSA_private_decrypt/RSA_public_encrypt overlap? By buffers i mean second and third开发者_如何学C args - unsigned char *from, unsigned char *to.


This is not documented. However, OpenSSL itself uses RSA_private_decrypt() with the same pointer for from and to, in ssl/s3_srvr.c (seen in OpenSSL 0.9.8o source code), so it must be safe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜