Skip to content

Commit

Permalink
Add endianness description for DSP0277 1.2.
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <[email protected]>
  • Loading branch information
jyao1 committed Jul 3, 2024
1 parent 5e82ca2 commit 883c31e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/crypto_endianness.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ libspdm follows that for SPDM 1.1+. Because the definition aligns with existing

## Endianness of AEAD IV

Versions 1.2 of the Secured Messages using SPDM specification describes:
* The sequence number shall be encoded as little endian in memory.

When the negotiated Secured Messages using SPDM version is 1.2 or later libspdm follows this definition.

Versions 1.0 and 1.1 of the Secured Messages using SPDM specification do not explicitly specify how
the AEAD IV is formed. In particular the endianness of the sequence number is either missing (1.0)
or ill-defined (1.1). libspdm allows an Integrator to specify the endianness encoding of the
Expand Down

0 comments on commit 883c31e

Please sign in to comment.