FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Get the DER/BER encoding of an ASN.1 OCTET_STRING header.
 *
 * input     Buffer holding DER/BER encoded data.
 * 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 OCTET_STRING 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 OCTET_STRING header.
input     Buffer holding DER/BER encoded data.
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 OCTET_STRING 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 OCTET_STRING header . input Buffer holding DER / BER encoded data . 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 OCTET_STRING tag is not found or length is invalid . Otherwise the number of bytes in the ASN . 1 data .
int GetOctetString(const byte* input, word32* inOutIdx, int* len,
                          word32 maxIdx)
{
    return GetASNHeader(input, ASN_OCTET_STRING, inOutIdx, len, maxIdx);
}
int GetOctetString ( const byte * input , word32 * inOutIdx , int * len , word32 maxIdx ) { return GetASNHeader ( input , ASN_OCTET_STRING , inOutIdx , len , maxIdx ) ; }
Get the DER/BER encoding of an ASN.1 OCTET_STRING header.
Get the DER / BER encoding of an ASN . 1 OCTET_STRING header .