-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Does SPDM emulator support SHA3 algorithms?
I'm seeing the following error when calling spdm responder / requester with '--hash SHA3_256 --meas_hash SHA3-256'
Responder's log:
SpdmReceiveRequest[.] ...
SpdmReceiveRequest[0] msg SPDM_CHALLENGE(0x83), size (0x24):
0000: 11 83 00 ff d8 cc 5f 77 18 f1 30 a8 c7 d2 36 a1 39 c3 3f 2b 32 06 c3 90 c0 e0 78 f4 a5 08 c5 de
0020: 4f fa b4 c4
SpdmSendResponse[0] ...
m1m2 hash - b3 3d 53 dc 21 a0 a0 4f 3f 68 44 42 49 88 71 8f 6a 57 e4 3a 2e 04 45 56 e7 09 70 17 0e 6d f4 49
SpdmSendResponse[0]: msg SPDM_ERROR(0x7f), size (0x4):
Steps to reproduce:
cmake -DARCH=x64 -DTOOLCHAIN=GCC -DTARGET=Debug -DCRYPTO=openssl ..
make
copy_sample_key
./spdm_responder_emu --pcap responder.pcap --ver 1.1 --hash SHA3_256 --meas_hash SHA3_256 --asym ECDSA_P256 --cap CERT,MEAS_SIG,CHAL,KEY_EX,ENCRYPT,MAC > responder.log
/spdm_requester_emu --ver 1.1 --hash SHA3_256 --meas_hash SHA3_256 --asym ECDSA_P256 --pcap requester.pcap > requester.log