Home
last modified time | relevance | path

Searched refs:contentDigests (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java169 Map<Integer, byte[]> contentDigests = new ArrayMap<>(); in verify() local
187 X509Certificate[] certs = verifySigner(signer, contentDigests, certFactory); in verify()
200 if (contentDigests.isEmpty()) { in verify()
205 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
209 if (contentDigests.containsKey(CONTENT_DIGEST_VERITY_CHUNKED_SHA256)) { in verify()
210 byte[] verityDigest = contentDigests.get(CONTENT_DIGEST_VERITY_CHUNKED_SHA256); in verify()
217 verityRootHash, contentDigests); in verify()
222 Map<Integer, byte[]> contentDigests, in verifySigner() argument
318 byte[] previousSignerDigest = contentDigests.put(digestAlgorithm, contentDigest); in verifySigner()
435 public final Map<Integer, byte[]> contentDigests; field in ApkSignatureSchemeV2Verifier.VerifiedSigner
[all …]
DApkSignatureSchemeV3Verifier.java164 Map<Integer, byte[]> contentDigests = new ArrayMap<>(); in verify() local
181 result = verifySigner(signer, contentDigests, certFactory); in verify()
202 if (contentDigests.isEmpty()) { in verify()
207 ApkSigningBlockUtils.verifyIntegrity(contentDigests, apk, signatureInfo); in verify()
211 if (contentDigests.containsKey(CONTENT_DIGEST_VERITY_CHUNKED_SHA256)) { in verify()
212 byte[] verityDigest = contentDigests.get(CONTENT_DIGEST_VERITY_CHUNKED_SHA256); in verify()
217 return new VerifiedSigner(result.first, result.second, verityRootHash, contentDigests); in verify()
223 Map<Integer, byte[]> contentDigests, in verifySigner() argument
332 byte[] previousSignerDigest = contentDigests.put(digestAlgorithm, contentDigest); in verifySigner()
473 public final Map<Integer, byte[]> contentDigests; field in ApkSignatureSchemeV3Verifier.VerifiedSigner
[all …]
DApkSignatureSchemeV4Verifier.java91 Map<Integer, byte[]> contentDigests = new ArrayMap<>(); in extractCertificates() local
92 contentDigests.put(convertToContentDigestType(hashingInfo.hashAlgorithm), in extractCertificates()
95 return new VerifiedSigner(new Certificate[]{result.first}, result.second, contentDigests); in extractCertificates()
179 public final Map<Integer, byte[]> contentDigests; field in ApkSignatureSchemeV4Verifier.VerifiedSigner
182 Map<Integer, byte[]> contentDigests) { in VerifiedSigner() argument
185 this.contentDigests = contentDigests; in VerifiedSigner()
DApkSignatureVerifier.java212 nonstreamingDigests = v3Signer.contentDigests; in verifyV4Signature()
227 nonstreamingDigests = v2Signer.contentDigests; in verifyV4Signature()
264 vSigner.contentDigests); in verifyV4Signature()
306 vSigner.contentDigests); in verifyV3Signature()
336 SignatureSchemeVersion.SIGNING_BLOCK_V2), vSigner.contentDigests); in verifyV2Signature()
588 public final Map<Integer, byte[]> contentDigests; field in ApkSignatureVerifier.SigningDetailsWithDigests
591 Map<Integer, byte[]> contentDigests) { in SigningDetailsWithDigests() argument
593 this.contentDigests = contentDigests; in SigningDetailsWithDigests()
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java649 byte[] hash = signer.contentDigests.getOrDefault(CONTENT_DIGEST_VERITY_CHUNKED_SHA256, in extractHashFromFS()
664 Map<Integer, byte[]> contentDigests = null; in extractHashFromV2V3Signature() local
666 contentDigests = ApkSignatureVerifier.verifySignaturesInternal(filePath, in extractHashFromV2V3Signature()
668 false).contentDigests; in extractHashFromV2V3Signature()
675 if (contentDigests == null) { in extractHashFromV2V3Signature()
681 byte[] hash = contentDigests.getOrDefault(CONTENT_DIGEST_CHUNKED_SHA256, null); in extractHashFromV2V3Signature()
688 byte[] hash = contentDigests.getOrDefault(CONTENT_DIGEST_CHUNKED_SHA512, null); in extractHashFromV2V3Signature()