FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Get the DER/BER encoding of an ASN.1 header.
 *
 * input     Buffer holding DER/BER encoded data.
 * tag       ASN.1 tag value expected in header.
 * inOutIdx  Current index into buffer to parse.
 * len       The number of bytes in the ASN.1 data.
 * maxIdx    Length of data in buffer.
 * returns BUFFER_E when there is not enough data to parse.
 *         ASN_PARSE_E when the expected tag is not found or length is invalid.
 *         Otherwise, the number of bytes in the ASN.1 data.
 */
Get the DER/BER encoding of an ASN.1 header.
input     Buffer holding DER/BER encoded data.
tag       ASN.1 tag value expected in header.
inOutIdx  Current index into buffer to parse.
len       The number of bytes in the ASN.1 data.
maxIdx    Length of data in buffer.
returns BUFFER_E when there is not enough data to parse.
ASN_PARSE_E when the expected tag is not found or length is invalid.
Otherwise, the number of bytes in the ASN.1 data.
Get the DER / BER encoding of an ASN . 1 header . input Buffer holding DER / BER encoded data . tag ASN . 1 tag value expected in header . inOutIdx Current index into buffer to parse . len The number of bytes in the ASN . 1 data . maxIdx Length of data in buffer . returns BUFFER_E when there is not enough data to parse . ASN_PARSE_E when the expected tag is not found or length is invalid . Otherwise the number of bytes in the ASN . 1 data .
static int GetASNHeader(const byte* input, byte tag, word32* inOutIdx, int* len,
                        word32 maxIdx)
{
    return GetASNHeader_ex(input, tag, inOutIdx, len, maxIdx, 1);
}
static int GetASNHeader ( const byte * input , byte tag , word32 * inOutIdx , int * len , word32 maxIdx ) { return GetASNHeader_ex ( input , tag , inOutIdx , len , maxIdx , 1 ) ; }
Get the DER/BER encoding of an ASN.1 header.
Get the DER / BER encoding of an ASN . 1 header .