lake-wg / edhoc

Ephemeral Diffie-Hellman Over COSE (EDHOC)
Other
7 stars 12 forks source link

CRED_x in CWT format #125

Closed gselander closed 3 years ago

gselander commented 3 years ago

In the example of CRED_x in 3.3.3, consider to replace own construct with CWT:

OLD:

CRED_x = {
  1:  1,
 -1:  4,
 -2:  h'b1a3e89460e88d3a8d54211dc95f0b90
        3ff205eb71912d6db8f4af980d2db83a',
 "subject name" : "42-50-31-FF-EF-37-32-39"
}

NEW:

CRED_x = {     /CWT/
 2 : "42-50-31-FF-EF-37-32-39",    /sub/
 8 : {    /cnf/
       1 : {     /COSE_Key/
              1:  1,
             -1:  4,
             -2:  h'b1a3e89460e88d3a8d54211dc95f0b90
                      3ff205eb71912d6db8f4af980d2db83a',
             }
       }
}
gselander commented 3 years ago

That is, a CWT without COSE signature/encrypt/MAC, i.e. an UCCS https://datatracker.ietf.org/doc/html/draft-ietf-rats-uccs

emanjon commented 3 years ago

Yes. I bit related to #115

With this change, I don't think EDHOC does maybe not need to support any "raw" COSE key.

gselander commented 3 years ago

This change has now been done in the master branch, see a1b25ba9 and commits in its vicinity.

Can we close the issue?

emanjon commented 3 years ago

Seems like this can be closed