Searched refs:cbDigest (Results 1 - 7 of 7) sorted by relevance
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | spc-sanity.cpp | 80 uint32_t cbDigest = RTCrX509AlgorithmIdentifier_QueryDigestSize(&pIndData->DigestInfo.DigestAlgorithm); local 81 if ( pIndData->DigestInfo.Digest.Asn1Core.cb != cbDigest 82 && (cbDigest != UINT32_MAX || (fFlags & RTCRSPCINDIRECTDATACONTENT_SANITY_F_ONLY_KNOWN_HASH))) 85 pIndData->DigestInfo.Digest.Asn1Core.cb, cbDigest,
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTDigest.cpp | 449 uint32_t const cbDigest = RTCrDigestGetHashSize(hDigest); local 450 if (!cbDigest || cbDigest >= _1K) 451 return Error("Unexpected hash size: %#x\n", cbDigest); 513 rc = RTStrConvertHexBytes(psz, s_abExpectedDigest, cbDigest, 0 /*fFlags*/); 530 rc = RTCrDigestFinal(hDigest, s_abActualDigest, cbDigest); 534 if (memcmp(s_abActualDigest, s_abExpectedDigest, cbDigest) == 0) 539 ValueUnion.psz, iLine, cbDigest, s_abExpectedDigest, cbDigest, s_abActualDigest);
|
/vbox/src/VBox/Runtime/common/ldr/ |
H A D | ldrEx.cpp | 671 RTDECL(int) RTLdrHashImage(RTLDRMOD hLdrMod, RTDIGESTTYPE enmDigest, char *pszDigest, size_t cbDigest) argument 682 case RTDIGESTTYPE_MD5: AssertReturn(cbDigest >= RTMD5_DIGEST_LEN + 1, VERR_BUFFER_OVERFLOW); break; 683 case RTDIGESTTYPE_SHA1: AssertReturn(cbDigest >= RTSHA1_DIGEST_LEN + 1, VERR_BUFFER_OVERFLOW); break; 684 case RTDIGESTTYPE_SHA256: AssertReturn(cbDigest >= RTSHA256_DIGEST_LEN + 1, VERR_BUFFER_OVERFLOW); break; 685 case RTDIGESTTYPE_SHA512: AssertReturn(cbDigest >= RTSHA512_DIGEST_LEN + 1, VERR_BUFFER_OVERFLOW); break; 698 return pMod->pOps->pfnHashImage(pMod, enmDigest, pszDigest, cbDigest);
|
H A D | ldrPE.cpp | 2737 static DECLCALLBACK(int) rtldrPE_HashImage(PRTLDRMODINTERNAL pMod, RTDIGESTTYPE enmDigest, char *pszDigest, size_t cbDigest) argument 2767 case RTDIGESTTYPE_SHA512: rc = RTSha512ToString(HashRes.abSha512, pszDigest, cbDigest); break; 2768 case RTDIGESTTYPE_SHA256: rc = RTSha256ToString(HashRes.abSha256, pszDigest, cbDigest); break; 2769 case RTDIGESTTYPE_SHA1: rc = RTSha1ToString(HashRes.abSha1, pszDigest, cbDigest); break; 2770 case RTDIGESTTYPE_MD5: rc = RTMd5ToString(HashRes.abMd5, pszDigest, cbDigest); break;
|
/vbox/src/VBox/Runtime/include/internal/ |
H A D | ldr.h | 400 * @param cbDigest Size of the buffer @a pszDigest points at. 402 DECLCALLBACKMEMBER(int, pfnHashImage)(PRTLDRMODINTERNAL pMod, RTDIGESTTYPE enmDigest, char *pszDigest, size_t cbDigest);
|
/vbox/src/VBox/Main/src-server/ |
H A D | ApplianceImplIO.cpp | 1167 size_t cbDigest; local 1171 cbDigest = RTSHA256_DIGEST_LEN; 1176 cbDigest = RTSHA1_DIGEST_LEN; 1178 rc = RTStrAllocEx(&pszDigest, cbDigest + 1); 1182 rc = RTSha256ToString(auchDig, pszDigest, cbDigest + 1); 1184 rc = RTSha1ToString(auchDig, pszDigest, cbDigest + 1);
|
/vbox/include/iprt/ |
H A D | ldr.h | 1131 * @param cbDigest Size of the buffer @a pszDigest points at. 1133 RTDECL(int) RTLdrHashImage(RTLDRMOD hLdrMod, RTDIGESTTYPE enmDigest, char *pszDigest, size_t cbDigest);
|
Completed in 68 milliseconds