Commit bbe5c49
committed
fix: remove unimplemented PQC stub registrations from mbedtls
When both spdm-mbedtls and spdm-aws-lc features are enabled (e.g., CI
matrix combos where RUN_REQUESTER_FEATURES includes spdm-mbedtls and
run_rust_spdm_emu_pqc appends spdm-aws-lc), the mbedtls backend
registers its unimplemented!() PQC stubs (pqc_asym_verify, kem_decap,
kem_encap) first via crypto_mbedtls_register_handles(). Since these
use OnceCell (first-writer-wins), the subsequent aws-lc register()
calls silently fail, causing PQC verification to panic with
'not implemented' from spdmlib_crypto_mbedtls.
Remove the three unimplemented PQC registrations from
crypto_mbedtls_register_handles(). This allows aws-lc's real PQC
implementations to register successfully regardless of feature
combination order.
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>1 parent 23c2d9d commit bbe5c49
1 file changed
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 19 | | |
28 | 20 | | |
29 | 21 | | |
| |||
0 commit comments