You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Build with the `spdm-aws-lc` feature and `pqc_config.json` (PQC signatures and key exchanges require larger buffer sizes than the default configuration):
Currently PQC is supported in raw public key mode (RFC 7250). Set the following environment variables to enable PQC:
255
256
256
257
```
258
+
export SPDM_CONFIG="etc/pqc_config.json"
257
259
export SPDMRS_USE_PQC=true
258
260
export SPDMRS_USE_RAW_PUB_KEY=true
259
261
```
260
262
261
263
Open one command window and run the responder:
262
264
```
263
-
SPDMRS_USE_PQC=true SPDMRS_USE_RAW_PUB_KEY=true cargo run -p spdm-responder-emu --no-default-features --features "spdm-ring,hashed-transcript-data,async-executor,spdm-aws-lc"
265
+
SPDM_CONFIG="etc/pqc_config.json" SPDMRS_USE_PQC=true SPDMRS_USE_RAW_PUB_KEY=true cargo run -p spdm-responder-emu --no-default-features --features "spdm-ring,hashed-transcript-data,async-executor,spdm-aws-lc"
264
266
```
265
267
266
268
Open another command window and run the requester:
267
269
```
268
-
SPDMRS_USE_PQC=true SPDMRS_USE_RAW_PUB_KEY=true cargo run -p spdm-requester-emu --no-default-features --features "spdm-ring,hashed-transcript-data,async-executor,spdm-aws-lc"
270
+
SPDM_CONFIG="etc/pqc_config.json" SPDMRS_USE_PQC=true SPDMRS_USE_RAW_PUB_KEY=true cargo run -p spdm-requester-emu --no-default-features --features "spdm-ring,hashed-transcript-data,async-executor,spdm-aws-lc"
269
271
```
270
272
271
273
This exercises the full SPDM handshake with ML-DSA-87 for signature and ML-KEM-1024 for key exchange, including: GET_VERSION, GET_CAPABILITIES, NEGOTIATE_ALGORITHMS, CHALLENGE, GET_MEASUREMENTS, KEY_EXCHANGE, FINISH, HEARTBEAT, KEY_UPDATE, GET_MEASUREMENTS (in-session), END_SESSION, PSK_EXCHANGE, PSK_FINISH, and END_SESSION.
@@ -274,6 +276,7 @@ This exercises the full SPDM handshake with ML-DSA-87 for signature and ML-KEM-1
274
276
275
277
| Variable | Description |
276
278
|---|---|
279
+
|`SPDM_CONFIG`| Set to `"etc/pqc_config.json"` for PQC builds (larger buffers for ML-DSA signatures and cert chains) |
277
280
|`SPDMRS_USE_PQC`| Set to `true` to enable PQC-only mode (ML-DSA-87 + ML-KEM-1024) |
278
281
|`SPDMRS_USE_RAW_PUB_KEY`| Set to `true` to use raw public key (RFC 7250) instead of certificate chain |
0 commit comments