diff options
| author | Nicolai Stange <[email protected]> | 2016-05-26 21:19:52 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2016-05-31 08:42:00 +0000 |
| commit | c5ce7c697c983693c441573d2948e0ab8d62726e (patch) | |
| tree | e3bde4c79e25699160ffeb1b50eed2c032a97a03 /lib/mpi | |
| parent | lib/mpi: mpi_read_from_buffer(): return error code (diff) | |
| download | kernel-c5ce7c697c983693c441573d2948e0ab8d62726e.tar.gz kernel-c5ce7c697c983693c441573d2948e0ab8d62726e.zip | |
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions
