commit | c5ce7c697c983693c441573d2948e0ab8d62726e | [log] [tgz] |
---|---|---|
author | Nicolai Stange <nicstange@gmail.com> | Thu May 26 23:19:52 2016 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Tue May 31 16:42:00 2016 +0800 |
tree | e3bde4c79e25699160ffeb1b50eed2c032a97a03 | |
parent | 03cdfaad491e82e4a66593c6e149ddae0421df59 [diff] |
lib/digsig: digsig_verify_rsa(): return -EINVAL if modulo length is zero Currently, if digsig_verify_rsa() detects that the modulo's length is zero, i.e. mlen == 0, it returns -ENOMEM which doesn't really fit here. Make digsig_verify_rsa() return -EINVAL upon mlen == 0. Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>