Commit f45a489
committed
Fix SE050 RSA port bugs
- se050_rsa_verify: when the function uploads only the public part of the key (keyCreated == 1), erase the transient SE050 object and don't persist keyIdSet = 1. A subsequent sign on the same RsaKey was reusing the public-only SE050 object and failing. Pre-existing bindings (from wc_RsaUseKeyId or a prior sign that uploaded a keypair) are preserved untouched.
- rsa_keygen_test: add WOLFSSL_SE050 to the existing WOLFSSL_CRYPTOCELL guard around the export-then-decode round-trip. SE050-generated keys keep their private components in the secure element, so wc_RsaKeyToDer + wc_RsaPrivateKeyDecode cannot complete. Matching guard on the idx declaration to avoid an unused-variable warning.1 parent c3aeeab commit f45a489
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
1542 | | - | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1543 | 1557 | | |
1544 | 1558 | | |
1545 | 1559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25357 | 25357 | | |
25358 | 25358 | | |
25359 | 25359 | | |
25360 | | - | |
| 25360 | + | |
25361 | 25361 | | |
25362 | 25362 | | |
25363 | 25363 | | |
| |||
25435 | 25435 | | |
25436 | 25436 | | |
25437 | 25437 | | |
25438 | | - | |
| 25438 | + | |
25439 | 25439 | | |
25440 | | - | |
| 25440 | + | |
| 25441 | + | |
| 25442 | + | |
| 25443 | + | |
25441 | 25444 | | |
25442 | 25445 | | |
25443 | 25446 | | |
25444 | | - | |
| 25447 | + | |
25445 | 25448 | | |
25446 | 25449 | | |
25447 | 25450 | | |
| |||
0 commit comments