On 2020-12-15, at 21:46, Laurence Lundblade <[email protected]> wrote: > > I mean modifying the decoder to return the offset (or some other access to > to-be-hashed data). Not all, maybe only very few, return the offset. There is > no need return it.
One valid use of CBOR is to prefix a single CBOR data item to a byte sequence (not itself packaged as a CBOR string). Any CBOR implementation that supports this usage can be used here. (E.g., in the Ruby cbor-diag gem or in Elixir excbor, the relevant interface method would be “decode_with_rest”; in the C/Ruby cbor gem, it gets only slightly more complicated with StringIO, unpackers, and buffers.) Grüße, Carsten _______________________________________________ COSE mailing list [email protected] https://www.ietf.org/mailman/listinfo/cose
