Home
last modified time | relevance | path

Searched refs:contentDigestAlgorithm (Results 1 – 7 of 7) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java130 verityContentDigestInfo.contentDigestAlgorithm; in generateV4Signature()
300 final ContentDigestAlgorithm contentDigestAlgorithm = in pickBestDigest() local
302 if (!isSupported(contentDigestAlgorithm, true)) { in pickBestDigest()
305 final int algorithmOrder = digestAlgorithmSortingOrder(contentDigestAlgorithm); in pickBestDigest()
319 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder() argument
320 switch (contentDigestAlgorithm) { in digestAlgorithmSortingOrder()
331 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported() argument
333 if (contentDigestAlgorithm == null) { in isSupported()
336 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported()
337 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported()
[all …]
DV4SchemeVerifier.java226 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureAlgorithm.java140 ContentDigestAlgorithm contentDigestAlgorithm, in SignatureAlgorithm() argument
145 mContentDigestAlgorithm = contentDigestAlgorithm; in SignatureAlgorithm()
DApkSigningBlockUtils.java247 ContentDigestAlgorithm contentDigestAlgorithm = in verifyIntegrity() local
252 if (!contentDigestAlgorithms.contains(contentDigestAlgorithm)) { in verifyIntegrity()
256 byte[] actualDigest = actualContentDigests.get(contentDigestAlgorithm); in verifyIntegrity()
261 contentDigestAlgorithm, in verifyIntegrity()
267 contentDigestAlgorithm, in verifyIntegrity()
273 signerInfo.verifiedContentDigests.put(contentDigestAlgorithm, actualDigest); in verifyIntegrity()
802 public final ContentDigestAlgorithm contentDigestAlgorithm; field in ApkSigningBlockUtils.VerityTreeAndDigest
806 VerityTreeAndDigest(ContentDigestAlgorithm contentDigestAlgorithm, byte[] rootHash, in VerityTreeAndDigest() argument
808 this.contentDigestAlgorithm = contentDigestAlgorithm; in VerityTreeAndDigest()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java211 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock() local
213 byte[] contentDigest = contentDigests.get(contentDigestAlgorithm); in generateSignerBlock()
216 contentDigestAlgorithm in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java192 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock() local
194 byte[] contentDigest = contentDigests.get(contentDigestAlgorithm); in generateSignerBlock()
197 contentDigestAlgorithm in generateSignerBlock()
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java649 ContentDigestAlgorithm contentDigestAlgorithm = in collectApkContentDigests() local
651 apkContentDigests.put(contentDigestAlgorithm, contentDigest.getValue()); in collectApkContentDigests()