Searched defs:pAttrib (Results 1 - 4 of 4) sorted by relevance
/vbox/src/VBox/Runtime/common/crypto/ |
H A D | x509-init.cpp | 55 PRTCRX509ATTRIBUTETYPEANDVALUE pAttrib = &pRdn->paItems[0]; local 58 if (pAttrib->Value.enmType == RTASN1TYPE_STRING) 60 int rc = RTAsn1String_RecodeAsUtf8(&pAttrib->Value.u.String, pAllocator); 64 pAttrib++;
|
H A D | pkcs7-sanity.cpp | 161 PCRTCRPKCS7ATTRIBUTE pAttrib = &pSignerInfo->AuthenticatedAttributes.paItems[j]; local 162 if (RTAsn1ObjId_CompareWithString(&pAttrib->Type, RTCR_PKCS9_ID_CONTENT_TYPE_OID) == 0) 168 AssertReturn(pAttrib->enmType == RTCRPKCS7ATTRIBUTETYPE_OBJ_IDS, VERR_INTERNAL_ERROR_3); 169 if (pAttrib->uValues.pObjIds->cItems != 1) 172 pAttrib->uValues.pObjIds->cItems); 174 else if (RTAsn1ObjId_CompareWithString(&pAttrib->Type, RTCR_PKCS9_ID_MESSAGE_DIGEST_OID) == 0) 180 AssertReturn(pAttrib->enmType == RTCRPKCS7ATTRIBUTETYPE_OCTET_STRINGS, VERR_INTERNAL_ERROR_3); 181 if (pAttrib->uValues.pOctetStrings->cItems != 1) 184 pAttrib->uValues.pOctetStrings->cItems); 187 AssertReturn(pAttrib [all...] |
H A D | pkcs7-verify.cpp | 236 PCRTCRPKCS7ATTRIBUTE pAttrib = &pSignerInfo->AuthenticatedAttributes.paItems[i]; local 238 if (RTAsn1ObjId_CompareWithString(&pAttrib->Type, RTCR_PKCS9_ID_CONTENT_TYPE_OID) == 0) 241 AssertReturn(pAttrib->enmType == RTCRPKCS7ATTRIBUTETYPE_OBJ_IDS, VERR_CR_PKCS7_INTERNAL_ERROR); 242 AssertReturn(pAttrib->uValues.pObjIds->cItems == 1, VERR_CR_PKCS7_INTERNAL_ERROR); 245 && RTAsn1ObjId_Compare(&pAttrib->uValues.pObjIds->paItems[0], &pSignedData->ContentInfo.ContentType) != 0) 248 &pAttrib->uValues.pObjIds->paItems[0], pSignedData->ContentInfo.ContentType.szObjId); 251 else if (RTAsn1ObjId_CompareWithString(&pAttrib->Type, RTCR_PKCS9_ID_MESSAGE_DIGEST_OID) == 0) 254 AssertReturn(pAttrib->enmType == RTCRPKCS7ATTRIBUTETYPE_OCTET_STRINGS, VERR_CR_PKCS7_INTERNAL_ERROR); 255 AssertReturn(pAttrib->uValues.pOctetStrings->cItems == 1, VERR_CR_PKCS7_INTERNAL_ERROR); 258 pAttrib [all...] |
/vbox/src/VBox/Runtime/common/ldr/ |
H A D | ldrPE.cpp | 2421 static int rtldrPE_VerifyAllPageHashes(PRTLDRMODPE pModPe, PCRTCRSPCSERIALIZEDOBJECTATTRIBUTE pAttrib, RTDIGESTTYPE enmDigest, argument 2435 uint32_t const cPages = pAttrib->u.pPageHashes->RawData.Asn1Core.cb / (cbHash + 4); 2436 if (cPages * (cbHash + 4) != pAttrib->u.pPageHashes->RawData.Asn1Core.cb) 2439 pAttrib->u.pPageHashes->RawData.Asn1Core.cb, cbHash); 2453 uint8_t const *pbHashTab = pAttrib->u.pPageHashes->RawData.Asn1Core.uData.pu8; 2675 PCRTCRSPCSERIALIZEDOBJECTATTRIBUTE pAttrib; local 2676 pAttrib = RTCrSpcIndirectDataContent_GetPeImageObjAttrib(pSignature->pIndData, 2678 if (pAttrib) 2679 rc = rtldrPE_VerifyAllPageHashes(pModPe, pAttrib, RTDIGESTTYPE_SHA256, pvScratch, cbScratch, pErrInfo); 2682 pAttrib [all...] |
Completed in 54 milliseconds