]> git.ipfire.org Git - thirdparty/openssl.git/commit
The return value of RSA_*_{en,de}crypt() is signed
authorViktor Dukhovni <openssl-users@dukhovni.org>
Sat, 6 Dec 2025 04:04:36 +0000 (15:04 +1100)
committerTomas Mraz <tomas@openssl.org>
Thu, 11 Dec 2025 12:07:13 +0000 (13:07 +0100)
commit4fe413b751ca6789cf97bbf6ba0256f8cd28654c
tree0ec894c2450774f2697e5207501145259f1d2ce1
parentdff307038ab7eb07084a8b2230a7dce968669e18
The return value of RSA_*_{en,de}crypt() is signed

The functions RSA_(public|private)_(en|de)crypt() return a signed
result, in particular `-1` may be returned on error, so the caller
MUST treat the value as signed.

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29323)

(cherry picked from commit f247d36074353f44596cb941c0a5f929c2e46e67)
crypto/rsa/rsa_gen.c