Commit 5facbf3
committed
Fix SE050 Ed25519 port bugs and add simulator CI workflow
- se050_ed25519_verify_msg: initialize *res = 0 at entry so failures don't leak a stale res = 1 from a prior good verify.
- Ed25519 import functions: reset keyIdSet / keyId under WOLFSSL_SE050 in wc_ed25519_import_private_key_ex, wc_ed25519_import_private_only, wc_ed25519_import_public_ex so overwriting host-side key material invalidates any prior SE050 object binding.
- New workflow .github/workflows/se050-sim.yml: builds wolfSSL against the NXP Plug&Trust SDK and runs the wolfCrypt tests against the SE050Sim simulator. Patches the upstream Dockerfile to use the PR's wolfSSL source.
- ed25519_test SE050 adjustments:
- Cap the RFC 8032 loop at 5 iters — iter 5's 1023 B msg exceeds NXP SDK SE05X_TLV_BUF_SIZE_CMD = 900.
- rareEd verifies and private-only sign: expect WC_HW_E (SE050 delegates malformed-input rejection to the secure element) instead of BAD_FUNC_ARG / SIG_VERIFY_E.
- Skip ed25519ctx_test / ed25519ph_test — SE050 port drops the context/prehash params so RFC 8032 ctx/ph vectors can't byte-match.1 parent d343ea6 commit 5facbf3
4 files changed
Lines changed: 135 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
1172 | 1178 | | |
1173 | 1179 | | |
1174 | 1180 | | |
| |||
1255 | 1261 | | |
1256 | 1262 | | |
1257 | 1263 | | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1258 | 1270 | | |
1259 | 1271 | | |
1260 | 1272 | | |
| |||
1311 | 1323 | | |
1312 | 1324 | | |
1313 | 1325 | | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1314 | 1332 | | |
1315 | 1333 | | |
1316 | 1334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3039 | 3039 | | |
3040 | 3040 | | |
3041 | 3041 | | |
| 3042 | + | |
| 3043 | + | |
3042 | 3044 | | |
3043 | 3045 | | |
3044 | 3046 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40971 | 40971 | | |
40972 | 40972 | | |
40973 | 40973 | | |
| 40974 | + | |
| 40975 | + | |
| 40976 | + | |
| 40977 | + | |
| 40978 | + | |
| 40979 | + | |
| 40980 | + | |
| 40981 | + | |
40974 | 40982 | | |
| 40983 | + | |
40975 | 40984 | | |
40976 | 40985 | | |
40977 | 40986 | | |
| |||
41044 | 41053 | | |
41045 | 41054 | | |
41046 | 41055 | | |
41047 | | - | |
| 41056 | + | |
| 41057 | + | |
| 41058 | + | |
| 41059 | + | |
| 41060 | + | |
| 41061 | + | |
41048 | 41062 | | |
41049 | 41063 | | |
41050 | 41064 | | |
| |||
41097 | 41111 | | |
41098 | 41112 | | |
41099 | 41113 | | |
| 41114 | + | |
| 41115 | + | |
| 41116 | + | |
| 41117 | + | |
| 41118 | + | |
| 41119 | + | |
| 41120 | + | |
| 41121 | + | |
41100 | 41122 | | |
41101 | 41123 | | |
41102 | | - | |
| 41124 | + | |
41103 | 41125 | | |
41104 | 41126 | | |
41105 | 41127 | | |
41106 | 41128 | | |
41107 | | - | |
| 41129 | + | |
41108 | 41130 | | |
41109 | 41131 | | |
41110 | 41132 | | |
41111 | 41133 | | |
41112 | | - | |
| 41134 | + | |
41113 | 41135 | | |
41114 | 41136 | | |
41115 | 41137 | | |
41116 | 41138 | | |
41117 | | - | |
| 41139 | + | |
41118 | 41140 | | |
| 41141 | + | |
| 41142 | + | |
| 41143 | + | |
41119 | 41144 | | |
41120 | 41145 | | |
41121 | 41146 | | |
| 41147 | + | |
| 41148 | + | |
| 41149 | + | |
| 41150 | + | |
| 41151 | + | |
| 41152 | + | |
41122 | 41153 | | |
41123 | 41154 | | |
41124 | 41155 | | |
41125 | 41156 | | |
41126 | 41157 | | |
41127 | 41158 | | |
41128 | 41159 | | |
| 41160 | + | |
41129 | 41161 | | |
41130 | 41162 | | |
41131 | 41163 | | |
| |||
41140 | 41172 | | |
41141 | 41173 | | |
41142 | 41174 | | |
| 41175 | + | |
| 41176 | + | |
| 41177 | + | |
| 41178 | + | |
41143 | 41179 | | |
| 41180 | + | |
| 41181 | + | |
| 41182 | + | |
41144 | 41183 | | |
| 41184 | + | |
41145 | 41185 | | |
41146 | 41186 | | |
41147 | 41187 | | |
| |||
0 commit comments