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.
精彩评论