Home
last modified time | relevance | path

Searched refs:ApkSigningBlockUtils (Results 1 – 12 of 12) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java22 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
90 public static ApkSigningBlockUtils.Result verify( in verify()
99 ApkSigningBlockUtils.SignatureNotFoundException { in verify()
100 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify()
101 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2); in verify()
103 ApkSigningBlockUtils.findSignature(apk, zipSections, in verify()
145 ApkSigningBlockUtils.Result result) in verify()
159 ApkSigningBlockUtils.verifyIntegrity( in verify()
185 ApkSigningBlockUtils.Result result) throws NoSuchAlgorithmException { in parseSigners()
188 signers = ApkSigningBlockUtils.getLengthPrefixedSlice(apkSignatureSchemeV2Block); in parseSigners()
[all …]
DV2SchemeSigner.java19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed…
20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed…
21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates;
22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey;
24 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
25 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig;
152 ApkSigningBlockUtils.computeContentDigests( in generateApkSignatureSchemeV2Block()
242 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
273 result.putInt(ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in generateAdditionalAttributes()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray;
26 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignatureNotFoundException;
96 public static ApkSigningBlockUtils.Result verify( in verify()
103 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify()
104 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in verify()
106 ApkSigningBlockUtils.findSignature(apk, zipSections, in verify()
150 ApkSigningBlockUtils.Result result) in verify()
158 ApkSigningBlockUtils.verifyIntegrity( in verify()
[all …]
DV3SchemeSigner.java19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement;
20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed…
21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed…
22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeCertificates;
23 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodePublicKey;
26 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig;
140 ApkSigningBlockUtils.computeContentDigests( in generateApkSignatureSchemeV3Block()
217 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
DV3SigningCertificateLineage.java19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsLengthPrefixedElement;
20 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.encodeAsSequenceOfLengthPrefixed…
21 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
22 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.readLengthPrefixedByteArray;
25 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
83 ApkSigningBlockUtils.checkByteOrderLittleEndian(inputBytes); in readSigningCertificateLineage()
/tools/apksig/src/main/java/com/android/apksig/
DDefaultApkSignerEngine.java21 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
257 private List<ApkSigningBlockUtils.SignerConfig> createV2SignerConfigs( in createV2SignerConfigs()
263 List<ApkSigningBlockUtils.SignerConfig> signerConfig = in createV2SignerConfigs()
282 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2)); in createV2SignerConfigs()
286 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2); in createV2SignerConfigs()
290 private List<ApkSigningBlockUtils.SignerConfig> createV3SignerConfigs( in createV3SignerConfigs()
292 List<ApkSigningBlockUtils.SignerConfig> rawConfigs = in createV3SignerConfigs()
294 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in createV3SignerConfigs()
296 List<ApkSigningBlockUtils.SignerConfig> processedConfigs = new ArrayList<>(); in createV3SignerConfigs()
302 ApkSigningBlockUtils.SignerConfig config = rawConfigs.get(i); in createV3SignerConfigs()
[all …]
DApkVerifier.java22 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
70 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2, "APK Signature Scheme v2"); in loadSupportedApkSigSchemeNames()
72 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3, "APK Signature Scheme v3"); in loadSupportedApkSigSchemeNames()
204 supportedSchemeNames.put(ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2, in verify()
206 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2)); in verify()
219 ApkSigningBlockUtils.Result v3Result = in verify()
226 foundApkSigSchemeIds.add(ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in verify()
228 } catch (ApkSigningBlockUtils.SignatureNotFoundException ignored) { in verify()
242 ApkSigningBlockUtils.Result v2Result = in verify()
251 foundApkSigSchemeIds.add(ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2); in verify()
[all …]
DSigningCertificateLineage.java19 import static com.android.apksig.internal.apk.ApkSigningBlockUtils.getLengthPrefixedSlice;
23 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
191 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in readFromApkDataSource()
192 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in readFromApkDataSource()
194 ApkSigningBlockUtils.findSignature(apk, zipSections, in readFromApkDataSource()
198 } catch (ApkSigningBlockUtils.SignatureNotFoundException e) { in readFromApkDataSource()
366 ApkSigningBlockUtils.SignerConfig newSignerConfig = in spawnDescendant()
367 new ApkSigningBlockUtils.SignerConfig(); in spawnDescendant()
374 ApkSigningBlockUtils.generateSignaturesOverData(newSignerConfig, signedData); in spawnDescendant()
430 ApkSigningBlockUtils.checkByteOrderLittleEndian(inputByteBuffer); in read()
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java25 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
840 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2); in testPublicKeyHasPositiveModulusAfterSigning()
844 ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3); in testPublicKeyHasPositiveModulusAfterSigning()
853 case ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V2: in getRSAPublicKeyFromSigningBlock()
856 case ApkSigningBlockUtils.VERSION_APK_SIGNATURE_SCHEME_V3: in getRSAPublicKeyFromSigningBlock()
864 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in getRSAPublicKeyFromSigningBlock()
866 SignatureInfo signatureInfo = ApkSigningBlockUtils.findSignature(apk, zipSections, in getRSAPublicKeyFromSigningBlock()
875 ByteBuffer signers = ApkSigningBlockUtils.getLengthPrefixedSlice( in getRSAPublicKeyFromSigningBlock()
877 ByteBuffer signer = ApkSigningBlockUtils.getLengthPrefixedSlice(signers); in getRSAPublicKeyFromSigningBlock()
880 ApkSigningBlockUtils.getLengthPrefixedSlice(signer); in getRSAPublicKeyFromSigningBlock()
[all …]
DSigningCertificateLineageTest.java25 import com.android.apksig.internal.apk.ApkSigningBlockUtils;
254 ByteBuffer attribute = ApkSigningBlockUtils.getLengthPrefixedSlice(v3SignerAttribute); in testLineageFromV3SignerAttribute()
/tools/apksig/src/test/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsTest.java76 ApkSigningBlockUtils.computeOneMbChunkContentDigests( in testNewVersionMatchesOld()
79 ApkSigningBlockUtils.computeOneMbChunkContentDigests( in testNewVersionMatchesOld()
93 ApkSigningBlockUtils.computeOneMbChunkContentDigests( in testMultithreadedVersionMatchesSinglethreaded()
97 ApkSigningBlockUtils.computeOneMbChunkContentDigests( in testMultithreadedVersionMatchesSinglethreaded()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java72 public class ApkSigningBlockUtils { class