Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in description of resource DTLS/TLS Ciphersuite of Security Object ? #560

Open
sbernard31 opened this issue Feb 28, 2023 · 1 comment

Comments

@sbernard31
Copy link

I'm not sure but there is maybe an error in description of resource DTLS/TLS Ciphersuite (id:16) of Security Object (Id:0).

The specification LWM2M-v1.2.1@core§Table: E.1-2 LwM2M Object: LWM2M Security Resource definitions says :

When this resource is present it instructs the TLS/DTLS client to propose the indicated ciphersuite(s) in the ClientHello of the handshake. A ciphersuite is indicated as a 32-bit integer value. The IANA TLS ciphersuite registry is maintained at https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml. As an example, the TLS_PSK_WITH_AES_128_CCM_8 ciphersuite is represented with the following string "0xC0,0xA8". To form an integer value the two values are concatenated. In this example, the value is 0xc0a8 or 49320.

I understand that ciphersuite are identified by 2 byte (e.g. 0xC0,0xA8"), so "A ciphersuite is indicated as a 32-bit integer value." sounds strange to me ?
Should it be "16-bit unsigned integer value" instead ? or maybe I misunderstood something ?

@jvermillard
Copy link

For completeness would be helpful to specify that the representation is Big Endian, which you deduce from the example but not clearly stated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants