Commit c3aeeab
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 178e10e commit c3aeeab
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 | |
|---|---|---|---|
| |||
41340 | 41340 | | |
41341 | 41341 | | |
41342 | 41342 | | |
| 41343 | + | |
| 41344 | + | |
| 41345 | + | |
| 41346 | + | |
| 41347 | + | |
| 41348 | + | |
| 41349 | + | |
| 41350 | + | |
41343 | 41351 | | |
| 41352 | + | |
41344 | 41353 | | |
41345 | 41354 | | |
41346 | 41355 | | |
| |||
41413 | 41422 | | |
41414 | 41423 | | |
41415 | 41424 | | |
41416 | | - | |
| 41425 | + | |
| 41426 | + | |
| 41427 | + | |
| 41428 | + | |
| 41429 | + | |
| 41430 | + | |
41417 | 41431 | | |
41418 | 41432 | | |
41419 | 41433 | | |
| |||
41466 | 41480 | | |
41467 | 41481 | | |
41468 | 41482 | | |
| 41483 | + | |
| 41484 | + | |
| 41485 | + | |
| 41486 | + | |
| 41487 | + | |
| 41488 | + | |
| 41489 | + | |
| 41490 | + | |
41469 | 41491 | | |
41470 | 41492 | | |
41471 | | - | |
| 41493 | + | |
41472 | 41494 | | |
41473 | 41495 | | |
41474 | 41496 | | |
41475 | 41497 | | |
41476 | | - | |
| 41498 | + | |
41477 | 41499 | | |
41478 | 41500 | | |
41479 | 41501 | | |
41480 | 41502 | | |
41481 | | - | |
| 41503 | + | |
41482 | 41504 | | |
41483 | 41505 | | |
41484 | 41506 | | |
41485 | 41507 | | |
41486 | | - | |
| 41508 | + | |
41487 | 41509 | | |
| 41510 | + | |
| 41511 | + | |
| 41512 | + | |
41488 | 41513 | | |
41489 | 41514 | | |
41490 | 41515 | | |
| 41516 | + | |
| 41517 | + | |
| 41518 | + | |
| 41519 | + | |
| 41520 | + | |
| 41521 | + | |
41491 | 41522 | | |
41492 | 41523 | | |
41493 | 41524 | | |
41494 | 41525 | | |
41495 | 41526 | | |
41496 | 41527 | | |
41497 | 41528 | | |
| 41529 | + | |
41498 | 41530 | | |
41499 | 41531 | | |
41500 | 41532 | | |
| |||
41509 | 41541 | | |
41510 | 41542 | | |
41511 | 41543 | | |
| 41544 | + | |
| 41545 | + | |
| 41546 | + | |
| 41547 | + | |
41512 | 41548 | | |
| 41549 | + | |
| 41550 | + | |
| 41551 | + | |
41513 | 41552 | | |
| 41553 | + | |
41514 | 41554 | | |
41515 | 41555 | | |
41516 | 41556 | | |
| |||
0 commit comments