xilcert
Vitis Drivers API Documentation
xcert_createfield.c File Reference

Overview

This file contains the implementation of the interface functions for creating DER encoded ASN.1 structures.

DER is a type-length-value encoding. As we parse the encoded value, the first byte represents the ASN.1 tag. This is a byte, or series of bytes, that tells you what type of thing is encoded. Next byte represents length. This tells the length of the value in bytes. Followed by length, is the value itself. As an example, the hex bytes 02 03 01 00 01 would represent an INTEGER (tag 02 corresponds to the INTEGER type), with length 03, and a three-byte value consisting of 01 00 01.

MODIFICATION HISTORY:
Ver   Who  Date       Changes
----- ---- ---------- -------------------------------------------------------
1.0   har  01/09/2023 Initial release
1.2   pre  26/12/2023 Avoids infinite loop in XCert_GetTrailingZeroesCount
                      function
      am   01/31/2024 Moved entire file under PLM_OCP_KEY_MNGMT macro
      kpt  02/21/2024 Added support for DME extension
      har  05/03/2024 Fixed size when it is of long form
1.3   har  05/07/2024 Added doxygen grouping and tags
                Fixed doxygen warnings
      har  09/17/2024 Fixed doxygen warnings
      kpt  11/19/2024 Add UTF8 encoding support for version field
 
Note