/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
H A 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 …]
|
H A 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 …]
|
H A 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()
|
H A D | ContentDigestAlgorithm.java | 20 public enum ContentDigestAlgorithm { enum 37 private ContentDigestAlgorithm( in ContentDigestAlgorithm() method in ContentDigestAlgorithm
|
/aosp_15_r20/tools/apksig/src/test/java/com/android/apksig/internal/apk/ |
H A 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 …]
|
/aosp_15_r20/tools/apksig/src/test/java/com/android/apksig/ |
H A 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 …]
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/ |
H A 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 …]
|
H A 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 …]
|
H A 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()
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
H A D | V4SchemeSigner.java | 29 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 151 final ContentDigestAlgorithm verityContentDigestAlgorithm = in generateV4Signature() 296 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV3Digest() 337 final Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getBestV2Digest() 382 final ContentDigestAlgorithm contentDigestAlgorithm = in pickBestDigest() 399 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder() 412 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported() 417 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported() 418 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported() 420 && contentDigestAlgorithm == ContentDigestAlgorithm.VERITY_CHUNKED_SHA256)) { in isSupported() [all …]
|
H A D | V4SchemeVerifier.java | 24 import com.android.apksig.internal.apk.ContentDigestAlgorithm; 243 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
H A 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()
|
H A 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
|
H A 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()
|
H A 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()
|
/aosp_15_r20/packages/modules/Virtualization/libs/apkverify/src/ |
D | algorithms.rs | 172 pub(crate) fn content_digest_algorithm(&self) -> ContentDigestAlgorithm { in content_digest_algorithm() argument 177 | SignatureAlgorithmID::DsaWithSha256 => ContentDigestAlgorithm::ChunkedSha256, in content_digest_algorithm() 180 | SignatureAlgorithmID::EcdsaWithSha512 => ContentDigestAlgorithm::ChunkedSha512, in content_digest_algorithm() 184 ContentDigestAlgorithm::VerityChunkedSha256 in content_digest_algorithm() 200 pub(crate) enum ContentDigestAlgorithm { enum
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
H A 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()
|
H A 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()
|
/aosp_15_r20/out/soong/.intermediates/tools/apksig/apksig/linux_glibc_common/javac/ |
D | apksig.jar.rsp | 1 ….java tools/apksig/src/main/java/com/android/apksig/internal/apk/ContentDigestAlgorithm.java tools…
|
D | apksig.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/android/
com/ ... |
/aosp_15_r20/out/soong/.intermediates/tools/apksig/apksig/linux_glibc_common/local-javac-header/ |
D | apksig.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/android/
com/ ... |
/aosp_15_r20/prebuilts/bundletool/ |
HD | bundletool-all-20230807.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/android/
com/ ... |
/aosp_15_r20/prebuilts/bazel/common/android_tools/android_tools/ |
D | all_android_tools_deploy.jar | META-INF/
META-INF/MANIFEST.MF
build-data.properties
com/
com ... |