/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | SignatureAlgorithm.java | 36 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 …]
|
D | ApkSigningBlockUtils.java | 20 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 …]
|
D | ContentDigestAlgorithm.java | 20 public enum ContentDigestAlgorithm { enum 37 private ContentDigestAlgorithm( in ContentDigestAlgorithm() method in ContentDigestAlgorithm
|
D | ApkSigningBlockUtilsLite.java | 222 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/ |
D | ApkSigningBlockUtilsTest.java | 38 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/ |
D | V2SourceStampVerifier.java | 28 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()
|
D | V2SourceStampSigner.java | 29 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
|
D | V1SourceStampVerifier.java | 25 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()
|
D | V1SourceStampSigner.java | 25 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/ |
D | ApkVerifierTest.java | 41 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/ |
D | V4SchemeSigner.java | 29 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 …]
|
D | V4SchemeVerifier.java | 24 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 243 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SourceStampVerifier.java | 33 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 …]
|
D | ApkVerifier.java | 42 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 …]
|
D | DefaultApkSignerEngine.java | 31 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/ |
D | V2SchemeSigner.java | 27 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()
|
D | V2SchemeVerifier.java | 25 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/ |
D | V3SchemeSigner.java | 29 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()
|
D | V3SchemeVerifier.java | 29 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()
|