Commit 643ec31
committed
drivers: pk: add new error code for signature failure
Now that "pk_[sign|verify]_ext()" work the same for all PK context types
it doesn't make sense to translate "PSA_ERROR_INVALID_SIGNATURE" to
"MBEDTLS_ERR_RSA_VERIFY_FAILED". Besides this translation is only available
when RSA key types are defined, which is not always true.
For this reason this commit introduces a more generic
"MBEDTLS_ERR_PK_INVALID_SIGNATURE" which is valid for any PK context handled
by PK module. The translation is trivially to "PSA_ERROR_INVALID_SIGNATURE"
of course.
Signed-off-by: Valerio Setti <vsetti@baylibre.com>1 parent 0f314dc commit 643ec31
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments