Commit 37c70c4
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 5facbf3 commit 37c70c4
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 | |
|---|---|---|---|
| |||
25012 | 25012 | | |
25013 | 25013 | | |
25014 | 25014 | | |
25015 | | - | |
| 25015 | + | |
25016 | 25016 | | |
25017 | 25017 | | |
25018 | 25018 | | |
| |||
25089 | 25089 | | |
25090 | 25090 | | |
25091 | 25091 | | |
25092 | | - | |
| 25092 | + | |
25093 | 25093 | | |
25094 | | - | |
| 25094 | + | |
| 25095 | + | |
| 25096 | + | |
| 25097 | + | |
25095 | 25098 | | |
25096 | 25099 | | |
25097 | 25100 | | |
25098 | | - | |
| 25101 | + | |
25099 | 25102 | | |
25100 | 25103 | | |
25101 | 25104 | | |
| |||
0 commit comments