1) An SPDM requester emulator and a SPDM responder emulator that can run in OS environment.
1) User guide
The user guide can be found at user_guide
1) Visual Studio (VS2015 or VS2019 or VS2022)
2) GCC (above GCC5)
3) LLVM (LLVM9)
Download and install LLVM9. Ensure LLVM9 executable directory is in PATH environment variable.
spdm_emu uses submodules for libspdm.
To get a full buildable repo, please use git submodule update --init --recursive
.
If there is an update for submodules, please use git submodule update
.
Use x86 command prompt for ARCH=ia32 and x64 command prompt for ARCH=x64. (TOOLCHAIN=VS2022|VS2019|VS2015|CLANG)
cd spdm-emu
mkdir build
cd build
cmake -G"NMake Makefiles" -DARCH=<x64|ia32> -DTOOLCHAIN=<toolchain> -DTARGET=<Debug|Release> -DCRYPTO=<mbedtls|openssl> ..
nmake copy_sample_key
nmake
(TOOLCHAIN=GCC|CLANG)
cd spdm-emu
mkdir build
cd build
cmake -DARCH=<x64|ia32|arm|aarch64|riscv32|riscv64|arc> -DTOOLCHAIN=<toolchain> -DTARGET=<Debug|Release> -DCRYPTO=<mbedtls|openssl> ..
make copy_sample_key
make
The spdm_emu output is at spdm-emu/build/bin.
Open one command prompt at output dir to run spdm_responder_emu
and another command prompt to run spdm_requester_emu
.
Please refer to spdm_emu for detail.
1) Please refer to issues for detail
This package is only the sample code to show the concept. It does not have a full validation such as robustness functional test and fuzzing test. It does not meet the production quality yet. Any codes including the API definition, the libary and the drivers are subject to change.