FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Store Rsa Key, may save later, Dsa could use in future */
Store Rsa Key, may save later, Dsa could use in future
Store Rsa Key may save later Dsa could use in future
static int StoreRsaKey(DecodedCert* cert, word32 bitStringEnd)
{
    int    length;
    word32 recvd = cert->srcIdx;
    if (GetSequence(cert->source, &cert->srcIdx, &length, bitStringEnd) < 0)
        return ASN_PARSE_E;
    recvd = cert->srcIdx - recvd;
    length += recvd;
    while (recvd--)
       cert->srcIdx--;
#if defined(WOLFSSL_RENESAS_TSIP)
    cert->sigCtx.pubkey_n_start = cert->sigCtx.pubkey_e_start = cert->srcIdx;
#endif
    cert->pubKeySize = length;
    cert->publicKey = cert->source + cert->srcIdx;
    cert->srcIdx += length;
    return 0;
}
static int StoreRsaKey ( DecodedCert * cert , word32 bitStringEnd ) { int length ; word32 recvd = cert -> srcIdx ; if ( GetSequence ( cert -> source , & cert -> srcIdx , & length , bitStringEnd ) < 0 ) return ASN_PARSE_E ; recvd = cert -> srcIdx - recvd ; length += recvd ; while ( recvd -- ) cert -> srcIdx -- ; #if defined ( WOLFSSL_RENESAS_TSIP ) cert -> sigCtx . pubkey_n_start = cert -> sigCtx . pubkey_e_start = cert -> srcIdx ; #endif cert -> pubKeySize = length ; cert -> publicKey = cert -> source + cert -> srcIdx ; cert -> srcIdx += length ; return 0 ; }
Store Rsa Key, may save later, Dsa could use in future
Store Rsa Key may save later Dsa could use in future