/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; 100 private static final ContentDigestAlgorithm[] V4_CONTENT_DIGEST_ALGORITHMS = 137 Set<ContentDigestAlgorithm> contentDigestAlgorithms, in verifyIntegrity() 157 Map<ContentDigestAlgorithm, byte[]> actualContentDigests; in verifyIntegrity() 201 ContentDigestAlgorithm contentDigestAlgorithm = in verifyIntegrity() 259 public static Map<ContentDigestAlgorithm, byte[]> computeContentDigests( in computeContentDigests() 261 Set<ContentDigestAlgorithm> digestAlgorithms, in computeContentDigests() 265 Map<ContentDigestAlgorithm, byte[]> contentDigests = new HashMap<>(); in computeContentDigests() [all …]
|
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()
|
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/v4/ |
D | V4SchemeSigner.java | 25 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 146 final ContentDigestAlgorithm verityContentDigestAlgorithm = in generateV4Signature() 263 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV3Digest() 293 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV2Digest() 338 final ContentDigestAlgorithm contentDigestAlgorithm = in pickBestDigest() 355 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder() 368 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported() 373 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported() 374 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported() 376 && 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/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 | 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 | V2SourceStampSigner.java | 29 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 68 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos) in generateSourceStampBlock() argument 139 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos, in getSignedDigestsFor() argument 147 Map<ContentDigestAlgorithm, byte[]> digestInfo = in getSignedDigestsFor() 150 for (Map.Entry<ContentDigestAlgorithm, byte[]> digest : digestInfo.entrySet()) { in getSignedDigestsFor()
|
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/ |
D | SourceStampVerifier.java | 31 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 213 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verifySourceStamp() 224 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in verifySourceStamp() 225 ContentDigestAlgorithm.class); in verifySourceStamp() 243 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in verifySourceStamp() 244 ContentDigestAlgorithm.class); in verifySourceStamp() 254 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = in verifySourceStamp() 291 Map<ContentDigestAlgorithm, byte[]> apkContentDigests, in parseSigners() argument 356 Map<ContentDigestAlgorithm, byte[]> apkContentDigests, in parseSigner() argument 427 private static Map<ContentDigestAlgorithm, byte[]> getApkContentDigestFromV1SigningScheme( in getApkContentDigestFromV1SigningScheme() [all …]
|
D | ApkVerifier.java | 34 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 185 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verify() 775 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verifySourceStamp() 888 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> sigSchemeApkContentDigests, in getApkContentDigests() argument 908 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getApkContentDigests() 917 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in getApkContentDigests() 918 ContentDigestAlgorithm.class); in getApkContentDigests() 966 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in pickBestDigestForV4() 971 private static Map<ContentDigestAlgorithm, byte[]> getApkContentDigestsFromSigningSchemeResult( in getApkContentDigestsFromSigningSchemeResult() 973 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in getApkContentDigestsFromSigningSchemeResult() [all …]
|
D | DefaultApkSignerEngine.java | 31 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 1103 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos = in outputZipSectionsInternal() 1114 Map<ContentDigestAlgorithm, byte[]> v1SigningSchemeDigests = new HashMap<>(); in outputZipSectionsInternal() 1132 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 | 28 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 76 private final Set<ContentDigestAlgorithm> mContentDigestsToVerify; 89 Set<ContentDigestAlgorithm> contentDigestsToVerify, in V3SchemeVerifier() 256 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners() 615 private Set<ContentDigestAlgorithm> mContentDigestsToVerify; 700 Set<ContentDigestAlgorithm> contentDigestsToVerify) { in setContentDigestsToVerify()
|