/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | SignatureAlgorithm.java | 36 ContentDigestAlgorithm.CHUNKED_SHA256, 49 ContentDigestAlgorithm.CHUNKED_SHA512, 60 ContentDigestAlgorithm.CHUNKED_SHA256, 68 ContentDigestAlgorithm.CHUNKED_SHA512, 76 ContentDigestAlgorithm.CHUNKED_SHA256, 84 ContentDigestAlgorithm.CHUNKED_SHA512, 92 ContentDigestAlgorithm.CHUNKED_SHA256, 104 ContentDigestAlgorithm.VERITY_CHUNKED_SHA256, 116 ContentDigestAlgorithm.VERITY_CHUNKED_SHA256, 128 ContentDigestAlgorithm.VERITY_CHUNKED_SHA256, [all …]
|
D | ApkSigningBlockUtils.java | 19 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.CHUNKED_SHA256; 20 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.CHUNKED_SHA512; 21 import static com.android.apksig.internal.apk.ContentDigestAlgorithm.VERITY_CHUNKED_SHA256; 99 private static final ContentDigestAlgorithm[] V4_CONTENT_DIGEST_ALGORITHMS = 113 ContentDigestAlgorithm digestAlg1 = alg1.getContentDigestAlgorithm(); in compareSignatureAlgorithm() 114 ContentDigestAlgorithm digestAlg2 = alg2.getContentDigestAlgorithm(); in compareSignatureAlgorithm() 123 ContentDigestAlgorithm alg1, in compareContentDigestAlgorithm() 124 ContentDigestAlgorithm alg2) { in compareContentDigestAlgorithm() 183 Set<ContentDigestAlgorithm> contentDigestAlgorithms, in verifyIntegrity() 203 Map<ContentDigestAlgorithm, byte[]> actualContentDigests; in verifyIntegrity() [all …]
|
D | ContentDigestAlgorithm.java | 20 public enum ContentDigestAlgorithm { enum 37 private ContentDigestAlgorithm( in ContentDigestAlgorithm() method in ContentDigestAlgorithm
|
/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 | 26 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 70 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests, in verify() argument 100 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests, in verify() argument 129 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests) { in getSignatureSchemeDigests() argument 131 for (Map.Entry<Integer, Map<ContentDigestAlgorithm, byte[]>> in getSignatureSchemeDigests() 143 Map<ContentDigestAlgorithm, byte[]> apkContentDigests) { in getApkDigests() argument 145 for (Map.Entry<ContentDigestAlgorithm, byte[]> apkContentDigest : in getApkDigests()
|
D | V2SourceStampSigner.java | 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 61 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos) in generateSourceStampBlock() argument 119 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos, in getSignedDigestsFor() argument 127 Map<ContentDigestAlgorithm, byte[]> digestInfo = in getSignedDigestsFor() 130 for (Map.Entry<ContentDigestAlgorithm, byte[]> digest : digestInfo.entrySet()) { in getSignedDigestsFor()
|
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/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 27 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 129 final ContentDigestAlgorithm verityContentDigestAlgorithm = in generateV4Signature() 225 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV3Digest() 255 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV2Digest() 300 final ContentDigestAlgorithm contentDigestAlgorithm = in pickBestDigest() 319 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder() 331 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported() 336 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported() 337 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported() 339 && contentDigestAlgorithm == ContentDigestAlgorithm.VERITY_CHUNKED_SHA256)) { in isSupported() [all …]
|
D | V4SchemeVerifier.java | 24 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 226 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 26 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 149 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV2Block() 160 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateApkSignatureSchemeV2Block() argument 191 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateSignerBlock() argument 211 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
|
D | V2SchemeVerifier.java | 23 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 147 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in verify() 180 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners() 246 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 136 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV3Block() 145 List<SignerConfig> signerConfigs, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateApkSignatureSchemeV3Block() argument 173 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() argument 192 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
|
D | V3SchemeVerifier.java | 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 153 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in verify() 234 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners() 288 Set<ContentDigestAlgorithm> contentDigestsToVerify) in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 30 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 203 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verify() 597 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in pickBestDigestForV4() 602 private static Map<ContentDigestAlgorithm, byte[]> getApkContentDigestsFromSigningSchemeResult( in getApkContentDigestsFromSigningSchemeResult() 604 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in getApkContentDigestsFromSigningSchemeResult() 611 private static Map<ContentDigestAlgorithm, byte[]> getApkContentDigestFromV1SigningScheme( in getApkContentDigestFromV1SigningScheme() 617 Map<ContentDigestAlgorithm, byte[]> v1ContentDigest = new HashMap<>(); in getApkContentDigestFromV1SigningScheme() 635 ContentDigestAlgorithm.SHA256, computeSha256DigestBytes(manifestBytes)); in getApkContentDigestFromV1SigningScheme() 642 …gBlockUtils.Result.SignerInfo.ContentDigest> contentDigests, Map<ContentDigestAlgorithm, byte[]> a… in collectApkContentDigests() argument 649 ContentDigestAlgorithm contentDigestAlgorithm = in collectApkContentDigests()
|
D | DefaultApkSignerEngine.java | 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 886 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos = in outputZipSectionsInternal() 897 Map<ContentDigestAlgorithm, byte[]> v1SigningSchemeDigests = new HashMap<>(); in outputZipSectionsInternal() 915 ContentDigestAlgorithm.SHA256, computeSha256DigestBytes(jarManifest)); in outputZipSectionsInternal()
|