FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Set the DER/BER encoding of the ASN.1 OBJECT_ID header.
 *
 * len         Length of the OBJECT_ID data.
 * output      Buffer to write into.
 * returns the number of bytes added to the buffer.
 */
Set the DER/BER encoding of the ASN.1 OBJECT_ID header.
len         Length of the OBJECT_ID data.
output      Buffer to write into.
returns the number of bytes added to the buffer.
Set the DER / BER encoding of the ASN . 1 OBJECT_ID header . len Length of the OBJECT_ID data . output Buffer to write into . returns the number of bytes added to the buffer .
int SetObjectId(int len, byte* output)
{
    int idx = 0;
    output[idx++] = ASN_OBJECT_ID;
    idx += SetLength(len, output + idx);
    return idx;
}
int SetObjectId ( int len , byte * output ) { int idx = 0 ; output [ idx ++ ] = ASN_OBJECT_ID ; idx += SetLength ( len , output + idx ) ; return idx ; }
Set the DER/BER encoding of the ASN.1 OBJECT_ID header.
Set the DER / BER encoding of the ASN . 1 OBJECT_ID header .