Home
last modified time | relevance | path

Searched refs:ContentDigestAlgorithm (Results 1 – 18 of 18) 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.java19 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 =
135 Set<ContentDigestAlgorithm> contentDigestAlgorithms, in verifyIntegrity()
155 Map<ContentDigestAlgorithm, byte[]> actualContentDigests; in verifyIntegrity()
199 ContentDigestAlgorithm contentDigestAlgorithm = in verifyIntegrity()
257 public static Map<ContentDigestAlgorithm, byte[]> computeContentDigests( in computeContentDigests()
259 Set<ContentDigestAlgorithm> digestAlgorithms, in computeContentDigests()
263 Map<ContentDigestAlgorithm, byte[]> contentDigests = new HashMap<>(); in computeContentDigests()
[all …]
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()
DContentDigestAlgorithm.java20 public enum ContentDigestAlgorithm { enum
37 private ContentDigestAlgorithm( in ContentDigestAlgorithm() method in ContentDigestAlgorithm
/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/v4/
DV4SchemeSigner.java26 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()
317 public static int digestAlgorithmSortingOrder(ContentDigestAlgorithm contentDigestAlgorithm) { in digestAlgorithmSortingOrder()
330 private static boolean isSupported(final ContentDigestAlgorithm contentDigestAlgorithm, in isSupported()
335 if (contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA256 in isSupported()
336 || contentDigestAlgorithm == ContentDigestAlgorithm.CHUNKED_SHA512 in isSupported()
338 && contentDigestAlgorithm == ContentDigestAlgorithm.VERITY_CHUNKED_SHA256)) { in isSupported()
[all …]
DV4SchemeVerifier.java24 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
226 ContentDigestAlgorithm algorithm = actualContentDigestInfo.contentDigestAlgorithm; in verifyRootHashAndTree()
/tools/apksig/src/main/java/com/android/apksig/
DSourceStampVerifier.java31 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 …]
DApkVerifier.java33 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
184 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verify()
738 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeApkContentDigests = in verifySourceStamp()
851 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> sigSchemeApkContentDigests, in getApkContentDigests() argument
871 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in getApkContentDigests()
880 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new EnumMap<>( in getApkContentDigests()
881 ContentDigestAlgorithm.class); in getApkContentDigests()
913 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in pickBestDigestForV4()
918 private static Map<ContentDigestAlgorithm, byte[]> getApkContentDigestsFromSigningSchemeResult( in getApkContentDigestsFromSigningSchemeResult()
920 Map<ContentDigestAlgorithm, byte[]> apkContentDigests = new HashMap<>(); in getApkContentDigestsFromSigningSchemeResult()
[all …]
DDefaultApkSignerEngine.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
1008 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos = in outputZipSectionsInternal()
1019 Map<ContentDigestAlgorithm, byte[]> v1SigningSchemeDigests = new HashMap<>(); in outputZipSectionsInternal()
1037 ContentDigestAlgorithm.SHA256, computeSha256DigestBytes(jarManifest)); in outputZipSectionsInternal()
/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()
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()
DV2SourceStampSigner.java29 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
67 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos) in generateSourceStampBlock() argument
138 Map<Integer, Map<ContentDigestAlgorithm, byte[]>> signatureSchemeDigestInfos, in getSignedDigestsFor() argument
146 Map<ContentDigestAlgorithm, byte[]> digestInfo = in getSignedDigestsFor()
149 for (Map.Entry<ContentDigestAlgorithm, byte[]> digest : digestInfo.entrySet()) { in getSignedDigestsFor()
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/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java26 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
168 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV2Block()
180 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateApkSignatureSchemeV2Block() argument
215 Map<ContentDigestAlgorithm, byte[]> contentDigests, in generateSignerBlock() argument
235 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
DV2SchemeVerifier.java23 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
144 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in verify()
177 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners()
243 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java28 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
141 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV3Block()
166 List<SignerConfig> signerConfigs, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateApkSignatureSchemeV3Block() argument
194 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() argument
213 ContentDigestAlgorithm contentDigestAlgorithm = in generateSignerBlock()
DV3SchemeVerifier.java28 import com.android.apksig.internal.apk.ContentDigestAlgorithm;
150 Set<ContentDigestAlgorithm> contentDigestsToVerify = new HashSet<>(1); in verify()
231 Set<ContentDigestAlgorithm> contentDigestsToVerify, in parseSigners()
285 Set<ContentDigestAlgorithm> contentDigestsToVerify) in parseSigner()