Gilles Peskine
004f87b98d
RSA encryption: accept input=NULL if ilen=0
...
In mbedtls_rsa_rsaes_oaep_encrypt and
mbedtls_rsa_rsaes_pkcs1_v15_encrypt, if the input length is 0 (which
is unusual and mostly useless, but permitted) then it is fine for the
input pointer to be NULL. Don't return an error in this case.
When `input` is NULL, `memcpy( p, input, ilen )` has undefined behavior
even if `ilen` is zero. So skip the `memcpy` call in this case.
Likewise, in `mbedtls_rsa_rsaes_oaep_decrypt`, skip the `memcpy` call if
`*olen` is zero.
2019-02-11 03:39:21 -05:00
..
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2018-11-02 10:52:38 +00:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2018-11-22 14:03:39 +00:00
2019-02-05 05:11:03 -05:00
2019-02-01 07:03:03 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-01 07:03:03 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-29 08:26:15 +00:00
2019-02-05 05:09:05 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-05 06:02:51 -05:00
2019-01-31 08:20:20 -05:00
2019-01-30 13:24:55 +00:00
2019-01-31 08:20:20 -05:00
2018-10-09 16:36:53 +01:00
2019-02-11 03:39:21 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-01-31 08:20:20 -05:00
2019-02-01 07:03:03 -05:00
2019-01-31 08:20:20 -05:00
2019-02-05 06:02:51 -05:00
2018-09-06 12:09:56 +01:00
2018-11-04 18:51:36 +00:00
2019-02-08 02:38:45 -05:00
2018-11-02 10:52:38 +00:00
2019-02-01 07:03:03 -05:00
2019-01-31 08:20:20 -05:00
2019-01-24 10:37:40 +01:00
2018-11-22 11:53:04 -05:00