Home
last modified time | relevance | path

Searched refs:signerInfo (Results 1 – 9 of 9) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/
DSourceStampVerifier.java317 Result.SignerInfo signerInfo = new Result.SignerInfo(); in parseSigners() local
319 result.addV2Signer(signerInfo); in parseSigners()
321 result.addV3Signer(signerInfo); in parseSigners()
330 signerInfo); in parseSigners()
332 signerInfo.addVerificationWarning( in parseSigners()
357 Result.SignerInfo signerInfo) in parseSigner() argument
383 signerInfo.addVerificationWarning( in parseSigner()
398 signerInfo.addVerificationWarning( in parseSigner()
408 signerInfo.setSigningCertificate(certificate); in parseSigner()
411 if (signerInfo.getSigningCertificate() == null) { in parseSigner()
[all …]
DApkVerifier.java587 for (Result.V2SchemeSignerInfo signerInfo : result.getV2SchemeSigners()) { in verify()
588 result.addSignerCertificate(signerInfo.getCertificate()); in verify()
591 for (Result.V1SchemeSignerInfo signerInfo : result.getV1SchemeSigners()) { in verify()
592 result.addSignerCertificate(signerInfo.getCertificate()); in verify()
919 for (ApkSigningBlockUtils.Result.SignerInfo signerInfo : result.signers) { in getApkContentDigests()
921 signerInfo.contentDigests) { in getApkContentDigests()
974 for (ApkSigningBlockUtils.Result.SignerInfo signerInfo : apkSigningSchemeResult.signers) { in getApkContentDigestsFromSigningSchemeResult()
975 collectApkContentDigests(signerInfo.contentDigests, apkContentDigests); in getApkContentDigestsFromSigningSchemeResult()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeVerifier.java97 final ApkSigningBlockUtils.Result.SignerInfo signerInfo; in verify() local
104 signerInfo = parseAndVerifySignatureBlock(signingInfo, signedData); in verify()
105 result.signers.add(signerInfo); in verify()
124 verifyRootHashAndTree(apk, signerInfo, hashingInfo.rawRootHash, tree); in verify()
238 ApkSigningBlockUtils.Result.SignerInfo signerInfo, byte[] expectedDigest, in verifyRootHashAndTree() argument
248 signerInfo.addError( in verifyRootHashAndTree()
257 signerInfo.addError( in verifyRootHashAndTree()
265 signerInfo.verifiedContentDigests.put(algorithm, actualDigest); in verifyRootHashAndTree()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampVerifier.java103 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in verify() local
105 result.signers.add(signerInfo); in verify()
116 signerInfo, in verify()
125 signerInfo.addWarning(ApkVerifier.Issue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
DV2SourceStampVerifier.java108 ApkSignerInfo signerInfo = new ApkSignerInfo(); in verify() local
109 result.mSigners.add(signerInfo); in verify()
117 signerInfo, in verify()
126 signerInfo.addWarning(ApkVerificationIssue.SOURCE_STAMP_MALFORMED_SIGNATURE); in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java194 for (Result.SignerInfo signerInfo : result.signers) { in verifyIntegrity()
195 for (Result.SignerInfo.ContentDigest expected : signerInfo.contentDigests) { in verifyIntegrity()
213 signerInfo.addError( in verifyIntegrity()
219 signerInfo.addError( in verifyIntegrity()
227 signerInfo.verifiedContentDigests.put(contentDigestAlgorithm, actualDigest); in verifyIntegrity()
1208 SignerInfo signerInfo = new SignerInfo(); in generatePkcs7DerEncodedMessage() local
1209 signerInfo.version = 1; in generatePkcs7DerEncodedMessage()
1212 signerInfo.sid = in generatePkcs7DerEncodedMessage()
1218 signerInfo.digestAlgorithm = digestAlgorithmId; in generatePkcs7DerEncodedMessage()
1219 signerInfo.signatureAlgorithm = signatureAlgorithmId; in generatePkcs7DerEncodedMessage()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java207 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners() local
209 signerInfo.index = signerIndex; in parseSigners()
210 result.signers.add(signerInfo); in parseSigners()
216 signerInfo, in parseSigners()
223 signerInfo.addError(Issue.V2_SIG_MALFORMED_SIGNER); in parseSigners()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java300 Result.SignerInfo signerInfo = in verify() local
303 Signer signer = new Signer(signerName, sigBlockEntry, sigFileEntry, signerInfo); in verify()
602 SignerInfo signerInfo, in verifySignerInfoAgainstSigFile() argument
608 String digestAlgorithmOid = signerInfo.digestAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
609 String signatureAlgorithmOid = signerInfo.signatureAlgorithm.algorithm; in verifySignerInfoAgainstSigFile()
658 findCertificate(signedDataCertificates, signerInfo.sid); in verifySignerInfoAgainstSigFile()
712 if (signerInfo.signedAttrs != null) { in verifySignerInfoAgainstSigFile()
737 signerInfo.signedAttrs.getEncoded(), Attribute.class); in verifySignerInfoAgainstSigFile()
780 ByteBuffer signedAttrsOriginalEncoding = signerInfo.signedAttrs.getEncoded(); in verifySignerInfoAgainstSigFile()
789 byte[] sigBytes = ByteBufferUtils.toByteArray(signerInfo.signature.slice()); in verifySignerInfoAgainstSigFile()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java313 ApkSigningBlockUtils.Result.SignerInfo signerInfo = in parseSigners() local
315 signerInfo.index = signerIndex; in parseSigners()
316 mResult.signers.add(signerInfo); in parseSigners()
319 parseSigner(signer, certFactory, signerInfo); in parseSigners()
321 signerInfo.addError(Issue.V3_SIG_MALFORMED_SIGNER); in parseSigners()