> On Oct 9, 2025, at 12:46 PM, Phillip Hallam-Baker <[email protected]> > wrote: > > I wrote nested varints. Gmail overrode me. > > The problem is that you can't DER encode an object in a single forward pass > because you can't write the outermost object until its length is known and > you don't know that till you have the lengths of the inner objects and so on.
Right. Same for CBOR deterministic encoding. Certificates aren’t constructed in constrained environments. The size of certificates is microscopic compared to the memory sizes of computers, so memory is not an issue. The extra code to do multiple passes isn’t much of a problem either — I was able to do it efficiently in my CBOR encoder. I prefer CBOR to DER/ASN.1 because it is generally simpler. But this is going off the thread’s topic, so I won’t go on any further. LL
_______________________________________________ COSE mailing list -- [email protected] To unsubscribe send an email to [email protected]
