ietf-rats-wg / draft-ietf-rats-msg-wrap

RATS conceptual messages wrapper
Other
0 stars 1 forks source link

clearly describe encap/decap algorithm #10

Closed thomas-fossati closed 1 year ago

thomas-fossati commented 1 year ago

In order to avoid misunderstandings, it'd be beneficial to describe the encap/decap algorithms in a more explicit manner

thomas-fossati commented 1 year ago

Maybe add this bit from the TCG spec:

A parser decodes the octet string into a byte buffer
and then does a 1-byte lookahead, as illustrated in the
following pseudo code, to decide which format to use to
decode the remainder of the byte buffer:
switch b[0] {
case 0x82:
  return CBORArray
case 0x5b:
  return JSONArray
default:
  return CBORTag
}