RTDECL(int) RTCrDigestCreateByType(PRTCRDIGEST phDigest, RTDIGESTTYPE enmDigestType) { PCRTCRDIGESTDESC pDesc = RTCrDigestFindByType(enmDigestType); if (pDesc) return RTCrDigestCreate(phDigest, pDesc, NULL); return VERR_NOT_FOUND; }
RTDECL(int) RTCrDigestCreateByObjId(PRTCRDIGEST phDigest, PCRTASN1OBJID pObjId) { void *pvOpaque; PCRTCRDIGESTDESC pDesc = RTCrDigestFindByObjId(pObjId, &pvOpaque); if (pDesc) return RTCrDigestCreate(phDigest, pDesc, pvOpaque); return VERR_NOT_FOUND; }
RTDECL(int) RTCrDigestCreateByObjIdString(PRTCRDIGEST phDigest, const char *pszObjId) { void *pvOpaque; PCRTCRDIGESTDESC pDesc = RTCrDigestFindByObjIdString(pszObjId, &pvOpaque); if (pDesc) return RTCrDigestCreate(phDigest, pDesc, pvOpaque); return VERR_NOT_FOUND; }