Re: Building a DER sequence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    Do I construct a sequence and add items to it - top down?

No, because then you have to go back and patch the sequence length and perhaps slide everything up or down a copule of bytes.

I would look at an existing simple sequence and start writing your own based on that; look for ASN1_SEQUENCE macros in crypto/x509/x*.c files.  Another set of macros will declare the i2d/d2i and PEM functions if needed.






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux