NordicSemiconductor / zcbor

Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions.
Apache License 2.0
118 stars 37 forks source link

Enforce encoding rules for simple values #446

Closed oyvindronningstad closed 3 months ago

oyvindronningstad commented 3 months ago

As per RFC8949 sec 3.3.

Simple values less than 24 MUST be encoded in the additional information. Simple values 24 to 31 inclusive are unused.