FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Remove PKCS8 header, move beginning of traditional to beginning of input */
Remove PKCS8 header, move beginning of traditional to beginning of input
Remove PKCS8 header move beginning of traditional to beginning of input
int ToTraditional_ex(byte* input, word32 sz, word32* algId)
{
    word32 inOutIdx = 0;
    int    length;
    if (input == NULL)
        return BAD_FUNC_ARG;
    length = ToTraditionalInline_ex(input, &inOutIdx, sz, algId);
    if (length < 0)
        return length;
    if (length + inOutIdx > sz)
        return BUFFER_E;
    XMEMMOVE(input, input + inOutIdx, length);
    return length;
}
int ToTraditional_ex ( byte * input , word32 sz , word32 * algId ) { word32 inOutIdx = 0 ; int length ; if ( input == NULL ) return BAD_FUNC_ARG ; length = ToTraditionalInline_ex ( input , & inOutIdx , sz , algId ) ; if ( length < 0 ) return length ; if ( length + inOutIdx > sz ) return BUFFER_E ; XMEMMOVE ( input , input + inOutIdx , length ) ; return length ; }
Remove PKCS8 header, move beginning of traditional to beginning of input
Remove PKCS8 header move beginning of traditional to beginning of input