开发者

Can buffers in RSA_private_decrypt/RSA_public_encrypt overlap?

开发者 https://www.devze.com 2023-02-13 17:15 出处:网络
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

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

精彩评论

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