Home
last modified time | relevance | path

Searched refs:ContentDigestAlgorithm (Results 1 – 19 of 19) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureAlgorithm.java36 ContentDigestAlgorithm.CHUNKED_SHA256,
50 ContentDigestAlgorithm.CHUNKED_SHA512,
62 ContentDigestAlgorithm.CHUNKED_SHA256,
71 ContentDigestAlgorithm.CHUNKED_SHA512,
80 ContentDigestAlgorithm.CHUNKED_SHA256,
89 ContentDigestAlgorithm.CHUNKED_SHA512,
98 ContentDigestAlgorithm.CHUNKED_SHA256,
110 ContentDigestAlgorithm.CHUNKED_SHA256,
123 ContentDigestAlgorithm.VERITY_CHUNKED_SHA256,
136 ContentDigestAlgorithm.VERITY_CHUNKED_SHA256,
[all …]
DApkSigningBlockUtils.java20 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.CHUNKED_SHA256;
21 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.CHUNKED_SHA512;
22 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.VERITY_CHUNKED_SHA256;
102 private static final ContentDigestAlgorithm[] V4_CONTENT_DIGEST_ALGORITHMS =
139 Set<ContentDigestAlgorithm> contentDigestAlgorithms, in verifyIntegrity()
159 Map<ContentDigestAlgorithm, byte[]> actualContentDigests; in verifyIntegrity()
203 ContentDigestAlgorithm contentDigestAlgorithm = in verifyIntegrity()
261 public static Map<ContentDigestAlgorithm, byte[]> computeContentDigests( in computeContentDigests()
263 Set<ContentDigestAlgorithm> digestAlgorithms, in computeContentDigests()
267 Map<ContentDigestAlgorithm, byte[]> contentDigests = new HashMap<>(); in computeContentDigests()
[all …]
DContentDigestAlgorithm.java20 public enum ContentDigestAlgorithm { enum
37 private ContentDigestAlgorithm( in ContentDigestAlgorithm() method in ContentDigestAlgorithm
DApkSigningBlockUtilsLite.java222 ContentDigestAlgorithm digestAlg1 = alg1.getContentDigestAlgorithm(); in compareSignatureAlgorithm()
223 ContentDigestAlgorithm digestAlg2 = alg2.getContentDigestAlgorithm(); in compareSignatureAlgorithm()
232 ContentDigestAlgorithm alg1, in compareContentDigestAlgorithm()
233 ContentDigestAlgorithm alg2) { in compareContentDigestAlgorithm()
/tools/apksig/src/test/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsTest.java38 final Set<ContentDigestAlgorithm> algos = EnumSet.of(ContentDigestAlgorithm.CHUNKED_SHA512);
71 Map<ContentDigestAlgorithm, byte[]> outputContentDigestsOld = in testNewVersionMatchesOld()
72 new EnumMap<>(ContentDigestAlgorithm.class); in testNewVersionMatchesOld()
73 Map<ContentDigestAlgorithm, byte[]> outputContentDigestsNew = in testNewVersionMatchesOld()
74 new EnumMap<>(ContentDigestAlgorithm.class); in testNewVersionMatchesOld()
88 Map<ContentDigestAlgorithm, byte[]> outputContentDigests = in testMultithreadedVersionMatchesSinglethreaded()
89 new EnumMap<>(ContentDigestAlgorithm.class); in testMultithreadedVersionMatchesSinglethreaded()
90 Map<ContentDigestAlgorithm, byte[]> outputContentDigestsMultithreaded = in testMultithreadedVersionMatchesSinglethreaded()
91 new EnumMap<>(ContentDigestAlgorithm.class); in testMultithreadedVersionMatchesSinglethreaded()
124 Map<ContentDigestAlgorithm, byte[]> d1, Map<ContentDigestAlgorithm, byte[]> d2) { in assertEqualDigests() argument
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV2SourceStampVerifier.java28 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
74 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests, in verify() argument
103 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests, in verify() argument
131 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests) { in getSignatureSchemeDigests() argument
133 for (Map.Entry<Integer, Map<ContentDigestAlgorithm, byte[]>> in getSignatureSchemeDigests()
145 Map<ContentDigestAlgorithm, byte[]> apkContentDigests) { in getApkDigests() argument
147 for (Map.Entry<ContentDigestAlgorithm, byte[]> apkContentDigest : in getApkDigests()
DV2SourceStampSigner.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
63 private final Map<Integer, Map<ContentDigestAlgorithm, byte[]>> mSignatureSchemeDigestInfos;
75 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos) in generateSourceStampBlock() argument
152 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> mSignatureSchemeDigestInfos, in getSignedDigestsFor() argument
160 Map<ContentDigestAlgorithm, byte[]> digestInfo = in getSignedDigestsFor()
163 for (Map.Entry<ContentDigestAlgorithm, byte[]> digest : digestInfo.entrySet()) { in getSignedDigestsFor()
256 private final Map<Integer, Map<ContentDigestAlgorithm, byte[]>> mSignatureSchemeDigestInfos;
264 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos) { in Builder() argument
DV1SourceStampVerifier.java25 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
68 Map<ContentDigestAlgorithm, byte[]> apkContentDigests, in verify() argument
98 Map<ContentDigestAlgorithm, byte[]> apkContentDigests, in verify() argument
130 Map<ContentDigestAlgorithm, byte[]> apkContentDigests) { in getApkDigests() argument
132 for (Map.Entry<ContentDigestAlgorithm, byte[]> apkContentDigest : in getApkDigests()
DV1SourceStampSigner.java25 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
58 SignerConfig sourceStampSignerConfig, Map<ContentDigestAlgorithm, byte[]> digestInfo) in generateSourceStampBlock() argument
65 for (Map.Entry<ContentDigestAlgorithm, byte[]> digest : digestInfo.entrySet()) { in generateSourceStampBlock()
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java41 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
453 Map<ContentDigestAlgorithm, byte[]> digests = in testGetResultDigests()
458 assertTrue(digests.containsKey(ContentDigestAlgorithm.CHUNKED_SHA256)); in testGetResultDigests()
460 ApkSigningBlockUtils.toHex(digests.get(ContentDigestAlgorithm.CHUNKED_SHA256)))); in testGetResultDigests()
473 Map<ContentDigestAlgorithm, byte[]> digests = in testGetV3ResultDigests()
478 assertTrue(digests.containsKey(ContentDigestAlgorithm.CHUNKED_SHA256)); in testGetV3ResultDigests()
480 ApkSigningBlockUtils.toHex(digests.get(ContentDigestAlgorithm.CHUNKED_SHA256)))); in testGetV3ResultDigests()
493 Map<ContentDigestAlgorithm, byte[]> digests = in testGetV2ResultDigests()
498 assertTrue(digests.containsKey(ContentDigestAlgorithm.CHUNKED_SHA256)); in testGetV2ResultDigests()
500 ApkSigningBlockUtils.toHex(digests.get(ContentDigestAlgorithm.CHUNKED_SHA256)))); in testGetV2ResultDigests()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
151 final ContentDigestAlgorithm verityContentDigestAlgorithm = in generateV4Signature()
299 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV3Digest()
340 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV2Digest()
385 final ContentDigestAlgorithm contentDigestAlgorithm = in pickBestDigest()
402 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder()
415 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported()
420 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported()
421 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported()
423 && contentDigestAlgorithm == ContentDigestAlgorithm.VERITY_CHUNKED_SHA256)) { in isSupported()
[all …]
DV4SchemeVerifier.java24 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
243 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
/tools/apksig/src/main/java/com/android/apksig/
DSourceStampVerifier.java33 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
215 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verifySourceStamp()
226 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in verifySourceStamp()
227 ContentDigestAlgorithm.class); in verifySourceStamp()
247 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in verifySourceStamp()
248 ContentDigestAlgorithm.class); in verifySourceStamp()
266 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in verifySourceStamp()
267 ContentDigestAlgorithm.class); in verifySourceStamp()
277 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = in verifySourceStamp()
314 Map<ContentDigestAlgorithm, byte[]> apkContentDigests, in parseSigners() argument
[all …]
DApkVerifier.java42 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
199 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verify()
747 Map<ContentDigestAlgorithm, byte[]> firstDigests, in compareDigests() argument
748 Map<ContentDigestAlgorithm, byte[]> secondDigests) throws NoSuchAlgorithmException { in compareDigests()
750 Set<ContentDigestAlgorithm> intersectKeys = new HashSet<>(firstDigests.keySet()); in compareDigests()
756 for (ContentDigestAlgorithm algorithm : intersectKeys) { in compareDigests()
832 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verifySourceStamp()
939 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> sigSchemeApkContentDigests = in getSigningBlockResult()
955 public static Map<ContentDigestAlgorithm, byte[]> getContentDigestsFromResult( in getContentDigestsFromResult()
957 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in getContentDigestsFromResult()
[all …]
DDefaultApkSignerEngine.java31 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
1111 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos = in outputZipSectionsInternal()
1122 Map<ContentDigestAlgorithm, byte[]> v1SigningSchemeDigests = new HashMap<>(); in outputZipSectionsInternal()
1140 ContentDigestAlgorithm.SHA256, computeSha256DigestBytes(jarManifest)); in outputZipSectionsInternal()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java27 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
170 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV2Block()
182 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateApkSignatureSchemeV2Block() argument
223 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateSignerBlock() argument
243 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
DV2SchemeVerifier.java25 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
146 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in verify()
179 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners()
248 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
230 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV3BlockAndDigests()
238 Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateApkSignatureSchemeV3Block() argument
266 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() argument
285 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
DV3SchemeVerifier.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
77 private final Set<ContentDigestAlgorithm> mContentDigestsToVerify;
90 Set<ContentDigestAlgorithm> contentDigestsToVerify, in V3SchemeVerifier()
260 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners()
631 private Set<ContentDigestAlgorithm> mContentDigestsToVerify;
716 Set<ContentDigestAlgorithm> contentDigestsToVerify) { in setContentDigestsToVerify()