FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Calculate final length by adding length of indefinite child items */
Calculate final length by adding length of indefinite child items
Calculate final length by adding length of indefinite child items
static void IndefItems_CalcLength(IndefItems* items)
{
    int i;
    int idx = items->idx;
    for (i = idx + 1; i < items->cnt; i++) {
        if (items->len[i].depth == items->depth) {
            items->len[idx].len += items->len[i].headerLen;
            items->len[idx].len += items->len[i].len;
        }
    }
    items->len[idx].headerLen += SetLength(items->len[idx].len, NULL);
}
static void IndefItems_CalcLength ( IndefItems * items ) { int i ; int idx = items -> idx ; for ( i = idx + 1 ; i < items -> cnt ; i ++ ) { if ( items -> len [ i ] . depth == items -> depth ) { items -> len [ idx ] . len += items -> len [ i ] . headerLen ; items -> len [ idx ] . len += items -> len [ i ] . len ; } } items -> len [ idx ] . headerLen += SetLength ( items -> len [ idx ] . len , NULL ) ; }
Calculate final length by adding length of indefinite child items
Calculate final length by adding length of indefinite child items