/tools/apksig/src/test/java/com/android/apksig/ |
D | SigningCertificateLineageTest.java | 31 import com.android.apksig.SigningCertificateLineage.SignerConfig; 60 private List<SignerConfig> mSigners; 81 SignerConfig unknownSigner = Resources.toLineageSignerConfig(getClass(), in testFirstRotationContainsExpectedSigners() 103 List<SignerConfig> signers = new ArrayList<>(3); in testLineageFromFileContainsExpectedSigners() 118 SignerConfig unknownSigner = Resources.toLineageSignerConfig(getClass(), in testLineageFromFileDoesNotContainUnknownSigner() 154 SignerConfig oldSignerConfig = mSigners.get(0); in testUpdatedCapabilitiesInLineage() 166 SignerConfig oldSignerConfig = mSigners.get(0); in testUpdatedCapabilitiesInLineageWrittenToFile() 185 SignerConfig oldSignerConfig = Resources.toLineageSignerConfig(getClass(), in testCapabilitiesAreNotUpdatedWithDefaultValues() 199 SignerConfig oldSigner = Resources.toLineageSignerConfig(getClass(), in testFirstRotationWitNonDefaultCapabilitiesForSigners() 201 SignerConfig newSigner = Resources.toLineageSignerConfig(getClass(), in testFirstRotationWitNonDefaultCapabilitiesForSigners() [all …]
|
D | ApkSignerTest.java | 109 List<ApkSigner.SignerConfig> rsa2048SignerConfig = in generateGoldenFiles() 112 List<ApkSigner.SignerConfig> rsa2048SignerConfigWithLineage = in generateGoldenFiles() 378 List<ApkSigner.SignerConfig> rsa2048SignerConfig = in testAlignmentPreserved_Golden() 381 List<ApkSigner.SignerConfig> rsa2048SignerConfigWithLineage = in testAlignmentPreserved_Golden() 618 List<ApkSigner.SignerConfig> rsaSignerConfig = in testMinSdkVersion_Golden() 642 List<ApkSigner.SignerConfig> rsaSignerConfig = in testVerityEnabled_Golden() 658 List<ApkSigner.SignerConfig> signers = in testRsaSignedVerifies() 677 List<ApkSigner.SignerConfig> signers = in testDsaSignedVerifies() 695 List<ApkSigner.SignerConfig> signers = in testEcSignedVerifies() 712 List<ApkSigner.SignerConfig> signers = in testV1SigningRejectsInvalidZipEntryNames() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 115 int minSdkVersion, SignerConfig parent, SignerCapabilities parentCapabilities, in createSigningLineage() 116 SignerConfig child, SignerCapabilities childCapabilities) in createSigningLineage() 308 public SigningCertificateLineage spawnDescendant(SignerConfig parent, SignerConfig child) in spawnDescendant() 327 SignerConfig parent, SignerConfig child, SignerCapabilities childCapabilities) in spawnDescendant() 366 ApkSigningBlockUtils.SignerConfig newSignerConfig = in spawnDescendant() 367 new ApkSigningBlockUtils.SignerConfig(); in spawnDescendant() 398 private SignatureAlgorithm getSignatureAlgorithm(SignerConfig parent) in getSignatureAlgorithm() 409 SignerConfig parent, SignerCapabilities signerCapabilities) { in spawnFirstDescendant() 510 public List<DefaultApkSignerEngine.SignerConfig> sortSignerConfigs( in sortSignerConfigs() 511 List<DefaultApkSignerEngine.SignerConfig> signerConfigs) { in sortSignerConfigs() [all …]
|
D | DefaultApkSignerEngine.java | 99 private final List<SignerConfig> mSignerConfigs; 100 private final SignerConfig mSourceStampSignerConfig; 104 private List<V1SchemeSigner.SignerConfig> mV1SignerConfigs = Collections.emptyList(); 161 List<SignerConfig> signerConfigs, in DefaultApkSignerEngine() 162 SignerConfig sourceStampSignerConfig, in DefaultApkSignerEngine() 201 SignerConfig oldestConfig = signerConfigs.get(0); in DefaultApkSignerEngine() 223 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() 229 SignerConfig signerConfig = signerConfigs.get(i); in createV1SignerConfigs() 249 V1SchemeSigner.SignerConfig v1SignerConfig = new V1SchemeSigner.SignerConfig(); in createV1SignerConfigs() 275 private List<ApkSigningBlockUtils.SignerConfig> createV2SignerConfigs( in createV2SignerConfigs() [all …]
|
D | ApkSigner.java | 87 private final List<SignerConfig> mSignerConfigs; 88 private final SignerConfig mSourceStampSignerConfig; 115 List<SignerConfig> signerConfigs, in ApkSigner() 116 SignerConfig sourceStampSignerConfig, in ApkSigner() 277 List<DefaultApkSignerEngine.SignerConfig> engineSignerConfigs = in sign() 279 for (SignerConfig signerConfig : mSignerConfigs) { in sign() 281 new DefaultApkSignerEngine.SignerConfig.Builder( in sign() 301 new DefaultApkSignerEngine.SignerConfig.Builder( in sign() 946 public static class SignerConfig { class in ApkSigner 951 private SignerConfig( in SignerConfig() method in ApkSigner.SignerConfig [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 145 List<SignerConfig> signerConfigs, in generateApkSignatureSchemeV2Block() 149 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV2Block() 159 List<SignerConfig> signerConfigs, in generateApkSignatureSchemeV2Block() 168 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV2Block() 190 SignerConfig signerConfig, in generateSignerBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 133 List<SignerConfig> signerConfigs) in generateApkSignatureSchemeV3Block() 136 Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> digestInfo = in generateApkSignatureSchemeV3Block() 145 List<SignerConfig> signerConfigs, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateApkSignatureSchemeV3Block() 151 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV3Block() 173 SignerConfig signerConfig, Map<ContentDigestAlgorithm, byte[]> contentDigests) in generateSignerBlock() 289 private static byte[] generateAdditionalAttributes(SignerConfig signerConfig) { in generateAdditionalAttributes()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V2SourceStampSigner.java | 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 60 SignerConfig sourceStampSignerConfig, in generateSourceStampBlock() 120 SignerConfig sourceStampSignerConfig, in getSignedDigestsFor()
|
D | V1SourceStampSigner.java | 24 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 58 SignerConfig sourceStampSignerConfig, Map<ContentDigestAlgorithm, byte[]> digestInfo) in generateSourceStampBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 77 public static class SignerConfig { class in V1SchemeSigner 235 List<SignerConfig> signerConfigs, in sign() 267 List<SignerConfig> signerConfigs, in signManifest() 283 for (SignerConfig signerConfig : signerConfigs) { in signManifest() 313 public static Set<String> getOutputEntryNames(List<SignerConfig> signerConfigs) { in getOutputEntryNames() 315 for (SignerConfig signerConfig : signerConfigs) { in getOutputEntryNames() 491 SignerConfig signerConfig, byte[] signatureFileBytes) in generateSignatureBlock()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 304 ApkSigner.SignerConfig sourceStampSignerConfig = null; in sign() 305 List<ApkSigner.SignerConfig> signerConfigs = new ArrayList<>(signers.size()); in sign() 311 ApkSigner.SignerConfig signerConfig = getSignerConfig(signer, passwordRetriever); in sign() 386 private static ApkSigner.SignerConfig getSignerConfig( in getSignerConfig() 417 ApkSigner.SignerConfig signerConfig = in getSignerConfig() 418 new ApkSigner.SignerConfig.Builder( in getSignerConfig() 712 SigningCertificateLineage.SignerConfig oldSignerConfig = in rotate() 713 new SigningCertificateLineage.SignerConfig.Builder( in rotate() 720 SigningCertificateLineage.SignerConfig newSignerConfig = in rotate() 721 new SigningCertificateLineage.SignerConfig.Builder( in rotate() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 26 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 98 DataSource apkContent, SignerConfig signerConfig, File outputFile) in generateV4Signature() 113 SignerConfig signerConfig) in generateV4Signature() 153 SignerConfig signerConfig, in generateSignature()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | Resources.java | 124 public static SigningCertificateLineage.SignerConfig toLineageSignerConfig(Class<?> cls, in toLineageSignerConfig() 129 return new SigningCertificateLineage.SignerConfig.Builder(privateKey, cert).build(); in toLineageSignerConfig()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 140 DefaultApkSignerEngine.SignerConfig signerConfig = in SigningExtension() 141 new DefaultApkSignerEngine.SignerConfig.Builder( in SigningExtension()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 1123 public static Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> 1129 List<SignerConfig> signerConfigs) in computeContentDigests() 1138 for (SignerConfig signerConfig : signerConfigs) { in computeContentDigests() 1250 SignerConfig signerConfig, byte[] data) in generateSignaturesOverData() 1369 public static class SignerConfig { class in ApkSigningBlockUtils
|