core-wg / oscore

Object Security for CoAP
7 stars 3 forks source link

CoAP Content-Formats Registry #221

Closed emanjon closed 6 years ago

emanjon commented 6 years ago

Opening an issue on this so we don't forget it.

Carsten commented in his review that while a CoAP Content-Format is not needed on-the-wire (and would cause increased overhead), some applications use Content-Format for other use cases. Need to do IANA registration and write some short text about this. I.e. SHALL NOT/SHOULD NOT appear on wire. Meta data to process the ciphertext is in the Option value, etc..

emanjon commented 6 years ago
ektrah commented 6 years ago

Is the content meaningful if not accompanied by the OSCORE Option or is it always incomplete without?

👍 for 2 bytes.

emanjon commented 6 years ago

Done in recent commits.

ektrah commented 6 years ago

https://github.com/core-wg/oscoap/commit/ca5982344d5df12ff81a1faa802ccb3b56f5ab48

The OSCORE body cannot be understood without the OSCORE header field value and the security context.

In that case I can't imagine any use case where an applications might want to use the content-format. If an application wants to use the content not on-the-wire, it would likely always need to create its own data format that combines the information in the OSCORE option and body.

emanjon commented 6 years ago

The text you copied are for the content-type which are on the wire. The Content-Format was requested by @cabo, let's reopen the issue and discuss.