Home
last modified time | relevance | path

Searched refs:pCertPkg (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_crypto_x509.c548 uint8_t *pCertPkg = NULL; in CC_CommonX509BuildCertPkg() local
578 pCertPkg = (uint8_t *) malloc(pkgBytesSize); in CC_CommonX509BuildCertPkg()
579 if (pCertPkg == NULL){ in CC_CommonX509BuildCertPkg()
586 memcpy(&pCertPkg[0], pAddData, addDataSize); in CC_CommonX509BuildCertPkg()
589 memcpy(&pCertPkg[addDataSize], *ppCertBuff, certSize); in CC_CommonX509BuildCertPkg()
594 rc = CC_CommonUtilCopyBuffToBinFile(outPkgFile, pCertPkg, pkgBytesSize); in CC_CommonX509BuildCertPkg()
607 if (pCertPkg != NULL) { in CC_CommonX509BuildCertPkg()
608 free(pCertPkg); in CC_CommonX509BuildCertPkg()
638 uint8_t *pCertPkg = NULL; in CC_CommonX509BuildCertPkg() local
673 pCertPkg = (uint8_t *) malloc(pkgBytesSize); in CC_CommonX509BuildCertPkg()
[all …]
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/secure_boot_debug/x509_cert_parser/
Dcc3x_sb_x509_parser.c50 uint32_t *pCertPkg = pDebugCertPkg; in CCCertSecDbgParse() local
58 pCertFirst = pCertPkg; in CCCertSecDbgParse()
59 …L_Asn1ReadItemVerifyTagFW((uint8_t **)&pCertPkg, &asn1DataCert1, CC_X509_CERT_SEQ_TAG_ID, (unsigne… in CCCertSecDbgParse()
84 pCertPkg += cert2WordOffset; in CCCertSecDbgParse()
85 pCertSecond = pCertPkg; in CCCertSecDbgParse()
86 …L_Asn1ReadItemVerifyTagFW((uint8_t **)&pCertPkg, &asn1DataCert2, CC_X509_CERT_SEQ_TAG_ID, (unsigne… in CCCertSecDbgParse()
110 pCertPkg += (cert3WordOffset - cert2WordOffset); in CCCertSecDbgParse()
111 pCertThird = pCertPkg; in CCCertSecDbgParse()
112 …L_Asn1ReadItemVerifyTagFW((uint8_t **)&pCertPkg, &asn1DataCert3, CC_X509_CERT_SEQ_TAG_ID, (unsigne… in CCCertSecDbgParse()
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/cc3x_boot_cert/x509cert_lib/
Dmain.c810 uint8_t *pCertPkg = NULL; in SBU_x509_BuildCertPkg() local
845 pCertPkg = (uint8_t *) malloc(pkgBytesSize); in SBU_x509_BuildCertPkg()
846 if (pCertPkg == NULL){ in SBU_x509_BuildCertPkg()
854 memcpy(&pCertPkg[pkgLocation], pAddData, addDataSize); in SBU_x509_BuildCertPkg()
858 memcpy(&pCertPkg[pkgLocation], gpCertBuff, gCertSize); in SBU_x509_BuildCertPkg()
863 memcpy(&pCertPkg[pkgLocation], pAddData, addDataSize); in SBU_x509_BuildCertPkg()
874 rc = CC_CommonUtilCopyBuffToBinFile(outPkgFile, pCertPkg, pkgBytesSize); in SBU_x509_BuildCertPkg()
887 if (pCertPkg != NULL) { in SBU_x509_BuildCertPkg()
888 free(pCertPkg); in SBU_x509_BuildCertPkg()