/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 | 91 List<ApkSigner.SignerConfig> rsa2048SignerConfig = in generateGoldenFiles() 94 List<ApkSigner.SignerConfig> rsa2048SignerConfigWithLineage = Arrays.asList( in generateGoldenFiles() 350 List<ApkSigner.SignerConfig> rsa2048SignerConfig = in testAlignmentPreserved_Golden() 353 List<ApkSigner.SignerConfig> rsa2048SignerConfigWithLineage = Arrays.asList( in testAlignmentPreserved_Golden() 558 List<ApkSigner.SignerConfig> rsaSignerConfig = Collections.singletonList( in testMinSdkVersion_Golden() 578 List<ApkSigner.SignerConfig> signers = Collections.singletonList( in testRsaSignedVerifies() 596 List<ApkSigner.SignerConfig> signers = in testDsaSignedVerifies() 614 List<ApkSigner.SignerConfig> signers = in testEcSignedVerifies() 631 List<ApkSigner.SignerConfig> signers = Collections.singletonList( in testV1SigningRejectsInvalidZipEntryNames() 657 List<ApkSigner.SignerConfig> signers = Collections.singletonList( in testWeirdZipCompressionMethod() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 85 private final List<SignerConfig> mSignerConfigs; 89 private List<V1SchemeSigner.SignerConfig> mV1SignerConfigs = Collections.emptyList(); 149 List<SignerConfig> signerConfigs, in DefaultApkSignerEngine() 184 SignerConfig oldestConfig = signerConfigs.get(0); in DefaultApkSignerEngine() 207 private void createV1SignerConfigs(List<SignerConfig> signerConfigs, int minSdkVersion) in createV1SignerConfigs() 213 SignerConfig signerConfig = signerConfigs.get(i); in createV1SignerConfigs() 232 V1SchemeSigner.SignerConfig v1SignerConfig = new V1SchemeSigner.SignerConfig(); in createV1SignerConfigs() 257 private List<ApkSigningBlockUtils.SignerConfig> createV2SignerConfigs( in createV2SignerConfigs() 263 List<ApkSigningBlockUtils.SignerConfig> signerConfig = in createV2SignerConfigs() 266 SignerConfig oldestConfig = mSignerConfigs.get(0); in createV2SignerConfigs() [all …]
|
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 | ApkSigner.java | 89 private final List<SignerConfig> mSignerConfigs; 110 List<SignerConfig> signerConfigs, in ApkSigner() 262 List<DefaultApkSignerEngine.SignerConfig> engineSignerConfigs = in sign() 264 for (SignerConfig signerConfig : mSignerConfigs) { in sign() 266 new DefaultApkSignerEngine.SignerConfig.Builder( in sign() 865 public static class SignerConfig { class in ApkSigner 870 private SignerConfig( in SignerConfig() method in ApkSigner.SignerConfig 934 public SignerConfig build() { in build() 935 return new SignerConfig( in build() 956 private final List<SignerConfig> mSignerConfigs; [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 27 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 135 List<SignerConfig> signerConfigs) in generateApkSignatureSchemeV3Block() 138 Pair<List<SignerConfig>, in generateApkSignatureSchemeV3Block() 146 List<SignerConfig> signerConfigs, in generateApkSignatureSchemeV3Block() 154 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV3Block() 174 SignerConfig signerConfig, in generateSignerBlock() 300 private static byte[] generateAdditionalAttributes(SignerConfig signerConfig) { in generateAdditionalAttributes()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 270 List<ApkSigner.SignerConfig> signerConfigs = new ArrayList<>(signers.size()); in sign() 307 ApkSigner.SignerConfig signerConfig = in sign() 308 new ApkSigner.SignerConfig.Builder( in sign() 623 SigningCertificateLineage.SignerConfig oldSignerConfig = in rotate() 624 new SigningCertificateLineage.SignerConfig.Builder( in rotate() 631 SigningCertificateLineage.SignerConfig newSignerConfig = in rotate() 632 new SigningCertificateLineage.SignerConfig.Builder( in rotate() 714 SigningCertificateLineage.SignerConfig signerConfig = in lineage() 715 new SigningCertificateLineage.SignerConfig.Builder( in lineage()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 83 public static class SignerConfig { class in V1SchemeSigner 241 List<SignerConfig> signerConfigs, in sign() 273 List<SignerConfig> signerConfigs, in signManifest() 289 for (SignerConfig signerConfig : signerConfigs) { in signManifest() 319 public static Set<String> getOutputEntryNames(List<SignerConfig> signerConfigs) { in getOutputEntryNames() 321 for (SignerConfig signerConfig : signerConfigs) { in getOutputEntryNames() 499 SignerConfig signerConfig, byte[] signatureFileBytes) in generateSignatureBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 25 import com.android.apksig.internal.apk.ApkSigningBlockUtils.SignerConfig; 146 List<SignerConfig> signerConfigs, in generateApkSignatureSchemeV2Block() 150 Pair<List<SignerConfig>, in generateApkSignatureSchemeV2Block() 159 List<SignerConfig> signerConfigs, in generateApkSignatureSchemeV2Block() 168 for (SignerConfig signerConfig : signerConfigs) { in generateApkSignatureSchemeV2Block() 188 SignerConfig signerConfig, in generateSignerBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 1060 public static Pair<List<SignerConfig>, Map<ContentDigestAlgorithm, byte[]>> 1066 List<SignerConfig> signerConfigs) in computeContentDigests() 1075 for (SignerConfig signerConfig : signerConfigs) { in computeContentDigests() 1185 SignerConfig signerConfig, byte[] data) in generateSignaturesOverData() 1240 public static class SignerConfig { class in ApkSigningBlockUtils
|
/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()
|