/tools/apksig/src/test/java/com/android/apksig/ |
D | SigningCertificateLineageTest.java | 24 import com.android.apksig.SigningCertificateLineage.SignerCapabilities; 25 import com.android.apksig.SigningCertificateLineage.SignerConfig; 74 SigningCertificateLineage lineage = createLineageWithSignersFromResources( in testFirstRotationContainsExpectedSigners() 85 SigningCertificateLineage lineage = createLineageWithSignersFromResources( in testRotationWithExistingLineageContainsExpectedSigners() 97 SigningCertificateLineage lineage = SigningCertificateLineage.readFromBytes( in testLineageFromBytesContainsExpectedSigners() 114 SigningCertificateLineage lineage = SigningCertificateLineage.readFromDataSource( in testLineageFromFileContainsExpectedSigners() 129 SigningCertificateLineage lineage = Resources.toSigningCertificateLineage(getClass(), in testLineageFromFileDoesNotContainUnknownSigner() 152 SigningCertificateLineage lineage = createLineageWithSignersFromResources( in testLineageWrittenToBytesContainsExpectedSigners() 157 lineage = SigningCertificateLineage.readFromBytes(lineageBytes); in testLineageWrittenToBytesContainsExpectedSigners() 163 SigningCertificateLineage lineage = createLineageWithSignersFromResources( in testLineageWrittenToFileContainsExpectedSigners() [all …]
|
D | ApkSignerTest.java | 137 SigningCertificateLineage lineage = in generateGoldenFiles() 434 SigningCertificateLineage lineage = in testAlignmentPreserved_Golden() 1009 SigningCertificateLineage lineage = in testV3SigningWithSignersNotInLineageFails() 1031 SigningCertificateLineage lineage = in testSigningWithLineageRequiresOldestSignerForV1AndV2() 1128 SigningCertificateLineage.SignerConfig firstSigner = in testLineageCanBeReadAfterV3Signing() 1130 SigningCertificateLineage.SignerConfig secondSigner = in testLineageCanBeReadAfterV3Signing() 1132 SigningCertificateLineage lineage = in testLineageCanBeReadAfterV3Signing() 1133 new SigningCertificateLineage.Builder(firstSigner, secondSigner).build(); in testLineageCanBeReadAfterV3Signing() 1144 SigningCertificateLineage lineageFromApk = SigningCertificateLineage.readFromApkFile(out); in testLineageCanBeReadAfterV3Signing() 1423 SigningCertificateLineage sourceStampLineage = in testSignApk_stampBlock_withStampLineage() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | SigningCertificateLineage.java | 72 public class SigningCertificateLineage { class 110 private SigningCertificateLineage(int minSdkVersion, List<SigningCertificateNode> list) { in SigningCertificateLineage() method in SigningCertificateLineage 115 private static SigningCertificateLineage createSigningLineage( in createSigningLineage() 120 SigningCertificateLineage signingCertificateLineage = in createSigningLineage() 121 new SigningCertificateLineage(minSdkVersion, new ArrayList<>()); in createSigningLineage() 127 public static SigningCertificateLineage readFromBytes(byte[] lineageBytes) in readFromBytes() 132 public static SigningCertificateLineage readFromFile(File file) in readFromFile() 141 public static SigningCertificateLineage readFromDataSource(DataSource dataSource) in readFromDataSource() 161 public static SigningCertificateLineage readFromV3AttributeValue(byte[] attrValue) in readFromV3AttributeValue() 167 return new SigningCertificateLineage(minSdkVersion, parsedLineage); in readFromV3AttributeValue() [all …]
|
D | DefaultApkSignerEngine.java | 108 private final SigningCertificateLineage mSourceStampSigningCertificateLineage; 112 private final SigningCertificateLineage mSigningCertificateLineage; 191 SigningCertificateLineage sourceStampSigningCertificateLineage, in DefaultApkSignerEngine() 202 SigningCertificateLineage signingCertificateLineage) in DefaultApkSignerEngine() 236 SigningCertificateLineage subLineage = in DefaultApkSignerEngine() 319 SigningCertificateLineage subLineage = in createV2SignerConfigs() 354 SigningCertificateLineage subLineage = mSigningCertificateLineage in processV3Configs() 1722 private SigningCertificateLineage mSourceStampSigningCertificateLineage; 1735 private SigningCertificateLineage mSigningCertificateLineage; 1841 SigningCertificateLineage sourceStampSigningCertificateLineage) { in setSourceStampSigningCertificateLineage() [all …]
|
D | ApkSigner.java | 92 private final SigningCertificateLineage mSourceStampSigningCertificateLineage; 118 private final SigningCertificateLineage mSigningCertificateLineage; 123 SigningCertificateLineage sourceStampSigningCertificateLineage, in ApkSigner() 144 SigningCertificateLineage signingCertificateLineage) { in ApkSigner() 1095 private SigningCertificateLineage mSourceStampSigningCertificateLineage; 1121 private SigningCertificateLineage mSigningCertificateLineage; 1181 SigningCertificateLineage sourceStampSigningCertificateLineage) { in setSourceStampSigningCertificateLineage() 1559 SigningCertificateLineage signingCertificateLineage) { in setSigningCertificateLineage()
|
D | ApkVerifier.java | 434 SigningCertificateLineage lineage = result.getSigningCertificateLineage(); in verify() 1073 private SigningCertificateLineage mSigningCertificateLineage; 1211 public SigningCertificateLineage getSigningCertificateLineage() { in getSigningCertificateLineage()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 21 import com.android.apksig.SigningCertificateLineage; 22 import com.android.apksig.SigningCertificateLineage.SignerCapabilities; 158 SigningCertificateLineage lineage = null; in sign() 160 SigningCertificateLineage sourceStampLineage = null; in sign() 806 SigningCertificateLineage.SignerConfig oldSignerConfig = in rotate() 807 new SigningCertificateLineage.SignerConfig.Builder( in rotate() 814 SigningCertificateLineage.SignerConfig newSignerConfig = in rotate() 815 new SigningCertificateLineage.SignerConfig.Builder( in rotate() 820 SigningCertificateLineage lineage; in rotate() 835 new SigningCertificateLineage.Builder(oldSignerConfig, newSignerConfig) in rotate() [all …]
|
D | help_rotate.txt | 3 This takes the provided keys and creates a SigningCertificateLineage entry linking the old to the 9 --in Input SigningCertificateLineage. This file contains a binary representation of 10 a SigningCertificateLineage object, which contains the proof-of-rotation for 13 An APK previously signed with a SigningCertificateLineage can also be 17 SigningCertificateLineage object. 28 be used to sign a new entry in the SigningCertificateLineage allowing the 29 addition of the new-signer. If an input SigningCertificateLineage object was 205 1. Create a new SigningCertificateLineage to enable rotation: 209 2. Extend an existing SigningCertificateLineage to rotate again after previous rotation: 213 3. Create a new SigningCertificateLineage with explicit capabilities for the previous signer:
|
D | help_lineage.txt | 3 This modifies the capabilities of one or more signers in the provided SigningCertificateLineage. 10 --in Input SigningCertificateLineage. This file contains a binary representation of 11 a SigningCertificateLineage object which contains the proof-of-rotation for 13 An APK previously signed with a SigningCertificateLineage can also be 17 SigningCertificateLineage object. 20 in the SigningCertificateLineage. 23 in the SigningCertificateLineage; prints the PEM encoding of each signing 32 This option is required for each signer to be modified in the provided SigningCertificateLineage.
|
D | help.txt | 14 rotate Add a new signing certificate to the SigningCertificateLineage 22 SigningCertificateLineage
|
D | SignerParams.java | 19 import com.android.apksig.SigningCertificateLineage.SignerCapabilities;
|
D | help_sign.txt | 107 An APK previously signed with a SigningCertificateLineage
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | Resources.java | 20 import com.android.apksig.SigningCertificateLineage; 124 public static SigningCertificateLineage.SignerConfig toLineageSignerConfig(Class<?> cls, in toLineageSignerConfig() 129 return new SigningCertificateLineage.SignerConfig.Builder(privateKey, cert).build(); in toLineageSignerConfig() 138 public static SigningCertificateLineage toSigningCertificateLineage(Class<?> cls, in toSigningCertificateLineage() 141 return SigningCertificateLineage.readFromDataSource(lineageDataSource); in toSigningCertificateLineage()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 23 import com.android.apksig.SigningCertificateLineage; 194 List<SigningCertificateLineage> lineages = new ArrayList<>(mResult.signers.size()); in verify() 232 SigningCertificateLineage.consolidateLineages(lineages); in verify() 555 SigningCertificateLineage.readFromV3AttributeValue(value); in parseSigner() 557 SigningCertificateLineage subLineage = in parseSigner()
|
D | V3SchemeSigner.java | 25 import com.android.apksig.SigningCertificateLineage; 174 SigningCertificateLineage signingCertificateLineage) { in generateV3SignerAttribute()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V2SourceStampSigner.java | 26 import com.android.apksig.SigningCertificateLineage; 204 private static Map<Integer, byte[]> generateStampAttributes(SigningCertificateLineage lineage) { in generateStampAttributes()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 25 import com.android.apksig.SigningCertificateLineage; 1273 public SigningCertificateLineage mSigningCertificateLineage; 1277 public SigningCertificateLineage signingCertificateLineage = null; 1341 public SigningCertificateLineage signingCertificateLineage;
|