Searched refs:signer (Results 1 – 6 of 6) sorted by relevance
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | mbedtls_pkcs7.c | 148 static int32_t ParseSignerVersion(unsigned char **p, const unsigned char *end, SignerInfo *signer) in ParseSignerVersion() argument 150 return mbedtls_asn1_get_int(p, end, &signer->version); in ParseSignerVersion() 153 …32_t ParseSignerIssuerAndSerialNum(unsigned char **p, const unsigned char *end, SignerInfo *signer) in ParseSignerIssuerAndSerialNum() argument 163 signer->issuerRaw.p = *p; in ParseSignerIssuerAndSerialNum() 169 rc = mbedtls_x509_get_name(p, *p + len, &signer->issuer); in ParseSignerIssuerAndSerialNum() 173 signer->issuerRaw.len = *p - signer->issuerRaw.p; /* not include the serial. */ in ParseSignerIssuerAndSerialNum() 175 rc = mbedtls_x509_get_serial(p, end, &signer->serial); in ParseSignerIssuerAndSerialNum() 180 static int32_t ParseSignerDigestAlg(unsigned char **p, const unsigned char *end, SignerInfo *signer) in ParseSignerDigestAlg() argument 182 int32_t rc = mbedtls_asn1_get_alg_null(p, end, &signer->digestAlgId); in ParseSignerDigestAlg() 186 if (InvalidDigestAlg(&signer->digestAlgId)) { in ParseSignerDigestAlg() [all …]
|
D | app_verify.c | 251 static int32_t CalcCmpContHash(const Pkcs7 *pkcs7, const SignerInfo *signer, in CalcCmpContHash() argument 272 rc = PKCS7_GetDigestInSignerAuthAttr((SignerInfo *)signer, &digInAttr, &digInAttrLen); in CalcCmpContHash() 288 static int32_t CalcDigest(const Pkcs7 *pkcs7, const SignerInfo *signer, in CalcDigest() argument 294 rc = CalcCmpContHash(pkcs7, signer, algType, hash, hashLen); in CalcDigest() 302 rc = PKCS7_GetSignerAuthAttr(signer, &input, &inputLen); in CalcDigest() 386 static const TrustAppCert *GetProfSourceBySigningCert(const SignerResovledInfo *signer, in GetProfSourceBySigningCert() argument 390 if (strcmp(trustList[i].issueCA, signer->issuer) == 0) { in GetProfSourceBySigningCert() 391 if (strcmp(trustList[i].profileSignCert, signer->subject) == 0 || in GetProfSourceBySigningCert() 392 strcmp(trustList[i].profileDebugSignCert, signer->subject) == 0) { in GetProfSourceBySigningCert() 401 static int32_t GetProfileCertTypeBySignInfo(SignerResovledInfo *signer, int32_t *certType) in GetProfileCertTypeBySignInfo() argument [all …]
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
D | mbedtls_pkcs7.h | 191 typedef int32_t (*PKCS7_CalcDigest)(const Pkcs7 *pkcs7, const SignerInfo *signer, 214 int32_t PKCS7_GetDigestInSignerAuthAttr(const SignerInfo *signer, unsigned char **dig, size_t *digL… 227 int32_t PKCS7_GetSignerAuthAttr(const SignerInfo *signer, unsigned char **data, size_t *dataLen);
|
/base/update/updater/services/package/pkg_verify/ |
D | pkcs7_signed_data.cpp | 328 Pkcs7SignerInfo signer; in SignerInfosParse() local 329 int32_t ret = SignerInfoParse(p7SiTmp, signer); in SignerInfosParse() 334 signerInfos_.push_back(std::move(signer)); in SignerInfosParse() 404 int32_t Pkcs7SignedData::VerifyDigest(X509 *cert, const Pkcs7SignerInfo &signer, const std::vector<… in VerifyDigest() argument 420 auto ret = VerifyDigestByPubKey(pubKey, signer.digestNid, hash, sig); in VerifyDigest()
|
D | pkcs7_signed_data.h | 85 … int32_t VerifyDigest(X509 *cert, const Pkcs7SignerInfo &signer, const std::vector<uint8_t> &hash,
|
/base/security/code_signature/test/unittest/ |
D | sign_and_enforce_test.cpp | 124 PKCS7_SIGNER_INFO *signer = GetSignerInfo(p7); in ModifyPkcs7SignerwithTargetFunc() local 125 if (signer == nullptr) { in ModifyPkcs7SignerwithTargetFunc() 128 modifyFunc(signer); in ModifyPkcs7SignerwithTargetFunc()
|