Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPDM emulator with SHA3 algorithms #387

Open
psrisoontorn opened this issue Nov 14, 2024 · 2 comments
Open

SPDM emulator with SHA3 algorithms #387

psrisoontorn opened this issue Nov 14, 2024 · 2 comments
Assignees

Comments

@psrisoontorn
Copy link

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

@psrisoontorn psrisoontorn changed the title SPDMU emulator with SHA3 algorithms SPDM emulator with SHA3 algorithms Nov 14, 2024
@psrisoontorn
Copy link
Author

This is a 'libspdm' issue. I've fixed this issue in the following PR:

@steven-bellock
Copy link
Contributor

This issue can be resolved once spdm-emu syncs to the latest libspdm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants