CBOR implementation in C