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
Add unit tests for the hash() function used during pre-boot attestation
negotiation.
hash() feeds NegotiationParams into SHA-512 in the order dictated by
the server's NegotiationResponse. Because the server controls which
params contribute and in what sequence, ordering sensitivity is a
security property: different orderings must produce different digests.
Tests cover:
- Challenge-first and EcPublicKeyBytes-first orderings, verified
against a manually computed SHA-512 reference.
- That swapping the param order produces a distinct digest.
Signed-off-by: Nihal <nihalxkumar@protonmail.com>
0 commit comments