PORT_Assert(sigd); if (!sigd) { PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); return SECFailure; }
NSS_CMSSignedData_Decode_BeforeData(NSSCMSSignedData *sigd){    /* set up the digests */    if (sigd->digestAlgorithms != NULL && sigd->digests == NULL) {	/* if digests are already there, do nothing */	sigd->contentInfo.digcx = NSS_CMSDigestContext_StartMultiple(sigd->digestAlgorithms);	if (sigd->contentInfo.digcx == NULL)	    return SECFailure;    }    return SECSuccess;}