Skip to content

Commit

Permalink
third-party: libspdm & validator bump to 3.4.0
Browse files Browse the repository at this point in the history
Bumps `libspdm` and `SPDM-Responder-Validator` to the latest 3.4.0
release. Also updates the README(s) to document that we do not yet
support `LIBSPDM_ENABLE_CAPABILITY_MEL_CAP`. This capabilities is an
SPDM 1.3 featur where a measurement extention log can be collected. As
such, it requirs such functionality to be implemented in `spdm-utils`.

Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
  • Loading branch information
twilfredo committed Jul 17, 2024
1 parent cb8dd9d commit 3ebc5ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ To build libspdm in the third-party directory
```shell
cd libspdm/
mkdir build; cd build
cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=openssl -DENABLE_BINARY_BUILD=1 -DCOMPILED_LIBCRYPTO_PATH=/usr/lib/ -DCOMPILED_LIBSSL_PATH=/usr/lib/ -DDISABLE_TESTS=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0" ..
cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=openssl -DENABLE_BINARY_BUILD=1 -DCOMPILED_LIBCRYPTO_PATH=/usr/lib/ -DCOMPILED_LIBSSL_PATH=/usr/lib/ -DDISABLE_TESTS=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0" ..
make -j8
```

Expand Down
2 changes: 1 addition & 1 deletion third-party/SPDM-Responder-Validator
2 changes: 1 addition & 1 deletion third-party/libspdm
Submodule libspdm updated 63 files
+2 −0 CMakeLists.txt
+5 −5 README.md
+1 −1 VERSION.md
+2 −1 doc/api/common_api.md
+28 −0 doc/api/requester_api.md
+6 −1 doc/crypto_endianness.md
+0 −3 include/hal/library/debuglib.h
+26 −0 include/hal/library/responder/measlib.h
+44 −0 include/industry_standard/spdm.h
+4 −3 include/industry_standard/spdm_secured_message.h
+22 −0 include/internal/libspdm_requester_lib.h
+20 −0 include/internal/libspdm_responder_lib.h
+1 −1 include/library/spdm_common_lib.h
+48 −14 include/library/spdm_lib_config.h
+23 −6 include/library/spdm_requester_lib.h
+12 −4 library/spdm_common_lib/libspdm_com_context_data.c
+14 −3 library/spdm_common_lib/libspdm_com_context_data_session.c
+1 −0 library/spdm_requester_lib/CMakeLists.txt
+13 −5 library/spdm_requester_lib/libspdm_req_get_csr.c
+298 −0 library/spdm_requester_lib/libspdm_req_get_measurement_extension_log.c
+30 −6 library/spdm_requester_lib/libspdm_req_set_certificate.c
+1 −0 library/spdm_responder_lib/CMakeLists.txt
+3 −1 library/spdm_responder_lib/libspdm_rsp_challenge_auth.c
+27 −21 library/spdm_responder_lib/libspdm_rsp_csr.c
+3 −0 library/spdm_responder_lib/libspdm_rsp_key_exchange.c
+158 −0 library/spdm_responder_lib/libspdm_rsp_measurement_extension_log.c
+3 −0 library/spdm_responder_lib/libspdm_rsp_psk_exchange.c
+4 −0 library/spdm_responder_lib/libspdm_rsp_receive_send.c
+30 −9 library/spdm_responder_lib/libspdm_rsp_set_certificate.c
+2 −2 library/spdm_secured_message_lib/libspdm_secmes_encode_decode.c
+27 −9 os_stub/spdm_device_secret_lib_null/lib.c
+271 −52 os_stub/spdm_device_secret_lib_sample/lib.c
+2 −0 os_stub/spdm_device_secret_lib_sample/spdm_device_secret_lib_internal.h
+2 −0 unit_test/fuzzing/fuzzing_AFL.sh
+2 −0 unit_test/fuzzing/fuzzing_AFLTurbo.sh
+2 −0 unit_test/fuzzing/fuzzing_AFLplusplus.sh
+2 −0 unit_test/fuzzing/fuzzing_LibFuzzer.sh
+2 −0 unit_test/fuzzing/oss_fuzz.sh
+2 −0 unit_test/fuzzing/run_initial_seed.sh
+ unit_test/fuzzing/seeds/test_spdm_requester_get_measurement_extension_log/measurement_extension_log.raw
+ unit_test/fuzzing/seeds/test_spdm_responder_measurement_extension_log/get_measurement_extension_log.raw
+65 −0 unit_test/fuzzing/test_requester/test_spdm_requester_get_measurement_extension_log/CMakeLists.txt
+151 −0 ...st/fuzzing/test_requester/test_spdm_requester_get_measurement_extension_log/get_measurement_extension_log.c
+65 −0 unit_test/fuzzing/test_responder/test_spdm_responder_measurement_extension_log/CMakeLists.txt
+87 −0 unit_test/fuzzing/test_responder/test_spdm_responder_measurement_extension_log/measurement_extension_log.c
+2 −1 unit_test/spdm_unit_test_common/algo.c
+2 −0 unit_test/spdm_unit_test_common/common.c
+2 −1 unit_test/spdm_unit_test_common/spdm_unit_test.h
+1 −0 unit_test/test_spdm_requester/CMakeLists.txt
+48 −1 unit_test/test_spdm_requester/get_csr.c
+1,112 −0 unit_test/test_spdm_requester/get_measurement_extension_log.c
+260 −0 unit_test/test_spdm_requester/key_exchange.c
+158 −12 unit_test/test_spdm_requester/set_certificate.c
+10 −0 unit_test/test_spdm_requester/test_spdm_requester.c
+1 −0 unit_test/test_spdm_responder/CMakeLists.txt
+98 −9 unit_test/test_spdm_responder/csr.c
+8 −0 unit_test/test_spdm_responder/key_exchange.c
+385 −0 unit_test/test_spdm_responder/measurement_extension_log.c
+13 −0 unit_test/test_spdm_responder/measurements.c
+12 −0 unit_test/test_spdm_responder/psk_exchange.c
+5 −0 unit_test/test_spdm_responder/receive_send.c
+78 −1 unit_test/test_spdm_responder/set_certificate_rsp.c
+10 −0 unit_test/test_spdm_responder/test_spdm_responder.c
4 changes: 2 additions & 2 deletions tock-responder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ cd build_no_std_arm
# an accurate time.
find ../os_stub/mbedtlslib/include/mbedtls/libspdm_mbedtls_config.h -type f -exec sed -i 's|#define MBEDTLS_HAVE_TIME_DATE|// #define MBEDTLS_HAVE_TIME_DATE|g' {} +

cmake -DARCH=arm -DTOOLCHAIN=ARM_GNU_BARE_METAL -DTARGET=Release -DCRYPTO=mbedtls -DDISABLE_TESTS=1 -DMARCH=armv7e-m -DDISABLE_LTO=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP=1 -DMBEDTLS_SKIP_TIME_CHECK -DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 -DMBEDTLS_PLATFORM_MS_TIME_ALT" ..
cmake -DARCH=arm -DTOOLCHAIN=ARM_GNU_BARE_METAL -DTARGET=Release -DCRYPTO=mbedtls -DDISABLE_TESTS=1 -DMARCH=armv7e-m -DDISABLE_LTO=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP=1 -DMBEDTLS_SKIP_TIME_CHECK -DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 -DMBEDTLS_PLATFORM_MS_TIME_ALT" ..
make -j8
cd ../

Expand All @@ -62,7 +62,7 @@ cd build_no_std_riscv
# an accurate time.
find ../os_stub/mbedtlslib/include/mbedtls/libspdm_mbedtls_config.h -type f -exec sed -i 's|#define MBEDTLS_HAVE_TIME_DATE|// #define MBEDTLS_HAVE_TIME_DATE|g' {} +

cmake -DARCH=riscv32 -DTOOLCHAIN=RISCV_NONE -DTARGET=Release -DCRYPTO=mbedtls -DDISABLE_TESTS=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP=1 -DMBEDTLS_SKIP_TIME_CHECK -DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 -DMBEDTLS_PLATFORM_MS_TIME_ALT" ..
cmake -DARCH=riscv32 -DTOOLCHAIN=RISCV_NONE -DTARGET=Release -DCRYPTO=mbedtls -DDISABLE_TESTS=1 -DCMAKE_C_FLAGS="-DLIBSPDM_ENABLE_CAPABILITY_CHUNK_CAP=1 -DMBEDTLS_SKIP_TIME_CHECK -DLIBSPDM_ENABLE_CAPABILITY_EVENT_CAP=0 -DLIBSPDM_ENABLE_CAPABILITY_MEL_CAP=0 -DMBEDTLS_PLATFORM_MS_TIME_ALT" ..
make -j8
cd ../
```
Expand Down

0 comments on commit 3ebc5ea

Please sign in to comment.