Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java248 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV3Digest() local
249 result.signers.get(0).contentDigests; in getBestV3Digest()
250 return pickBestDigest(contentDigests); in getBestV3Digest()
285 final List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests = in getBestV2Digest() local
286 signer.contentDigests; in getBestV2Digest()
287 return pickBestDigest(contentDigests); in getBestV2Digest()
290 …estDigest(List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests) throws Signat… in pickBestDigest() argument
291 if (contentDigests == null || contentDigests.isEmpty()) { in pickBestDigest()
297 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest : contentDigests) { in pickBestDigest()
DV4SchemeVerifier.java215 result.contentDigests.add(contentDigest); in parseAndVerifySignatureBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java160 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateApkSignatureSchemeV2Block() argument
172 signerBlock = generateSignerBlock(signerConfig, contentDigests, v3SigningEnabled); in generateApkSignatureSchemeV2Block()
191 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateSignerBlock() argument
213 byte[] contentDigest = contentDigests.get(contentDigestAlgorithm); in generateSignerBlock()
DV2SchemeVerifier.java398 result.contentDigests.add( in parseSigner()
411 List<Integer> sigAlgsFromDigestsRecord = new ArrayList<>(result.contentDigests.size()); in parseSigner()
412 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest digest : result.contentDigests) { in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java145 List<SignerConfig> signerConfigs, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateApkSignatureSchemeV3Block() argument
155 signerBlock = generateSignerBlock(signerConfig, contentDigests); in generateApkSignatureSchemeV3Block()
173 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() argument
194 byte[] contentDigest = contentDigests.get(contentDigestAlgorithm); in generateSignerBlock()
DV3SchemeVerifier.java460 result.contentDigests.add( in parseSigner()
473 List<Integer> sigAlgsFromDigestsRecord = new ArrayList<>(result.contentDigests.size()); in parseSigner()
474 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest digest : result.contentDigests) { in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java241 for (Result.SignerInfo.ContentDigest expected : signerInfo.contentDigests) { in verifyIntegrity()
439 Map<ContentDigestAlgorithm, byte[]> contentDigests = new HashMap<>(); in computeContentDigests() local
451 contentDigests); in computeContentDigests()
454 computeApkVerityDigest(beforeCentralDir, centralDir, eocd, contentDigests); in computeContentDigests()
456 return contentDigests; in computeContentDigests()
1145 Map<ContentDigestAlgorithm, byte[]> contentDigests; // digest algorithm ID -> digest in computeContentDigests() local
1147 contentDigests = in computeContentDigests()
1161 return Pair.of(signerConfigs, contentDigests); in computeContentDigests()
1357 public static byte[] pickBestDigestForV4(Map<ContentDigestAlgorithm, byte[]> contentDigests) { in pickBestDigestForV4() argument
1359 if (contentDigests.containsKey(algo)) { in pickBestDigestForV4()
[all …]
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java596 …[] pickBestDigestForV4(List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests) { in pickBestDigestForV4() argument
598 collectApkContentDigests(contentDigests, apkContentDigests); in pickBestDigestForV4()
606 collectApkContentDigests(signerInfo.contentDigests, apkContentDigests); in getApkContentDigestsFromSigningSchemeResult()
642 …ntDigests(List<ApkSigningBlockUtils.Result.SignerInfo.ContentDigest> contentDigests, Map<ContentDi… in collectApkContentDigests() argument
643 for (ApkSigningBlockUtils.Result.SignerInfo.ContentDigest contentDigest : contentDigests) { in collectApkContentDigests()
1144 mContentDigests = result.contentDigests; in V2SchemeSignerInfo()
1213 mContentDigests = result.contentDigests; in V3SchemeSignerInfo()
1279 mContentDigests = result.contentDigests; in V4SchemeSignerInfo()