/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 226 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock() 229 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock() 235 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock() 274 encodeAsSequenceOfLengthPrefixedElements(signedData.certificates), in generateSignerBlock() 325 public List<byte[]> certificates; field in V2SchemeSigner.V2SignatureSchemeBlock.SignedData
|
D | V2SchemeVerifier.java | 342 ByteBuffer certificates = ApkSigningBlockUtils.getLengthPrefixedSlice(signedData); in parseSigner() local 347 while (certificates.hasRemaining()) { in parseSigner() 349 byte[] encodedCert = ApkSigningBlockUtils.readLengthPrefixedByteArray(certificates); in parseSigner()
|
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/ |
D | AttestationTest.java | 142 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation() local 143 Log.d(INFO, "Retrieved certificate chain of length " + certificates.length + "\n"); in testEcAttestation() 145 verifyCertificateSignatures(certificates); in testEcAttestation() 150 X509Certificate attestationCert = (X509Certificate) certificates[0]; in testEcAttestation() 155 X509Certificate rootCert = (X509Certificate) certificates[certificates.length - 1]; in testEcAttestation()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | DefaultApkSignerEngine.java | 261 List<X509Certificate> certificates = signerConfig.getCertificates(); in createV1SignerConfigs() local 262 PublicKey publicKey = certificates.get(0).getPublicKey(); in createV1SignerConfigs() 283 v1SignerConfig.certificates = certificates; in createV1SignerConfigs() 366 String keyAlgorithm = config.certificates.get(0).getPublicKey().getAlgorithm(); in processV3Configs() 401 X509Certificate signerCert = config.certificates.get(0); in processV3Configs() 484 config.certificates.get(0)); in createSourceStampSignerConfig() 529 List<X509Certificate> certificates = signerConfig.getCertificates(); in createSigningBlockSignerConfig() local 530 PublicKey publicKey = certificates.get(0).getPublicKey(); in createSigningBlockSignerConfig() 534 newSignerConfig.certificates = certificates; in createSigningBlockSignerConfig() 1727 public Builder(String name, PrivateKey privateKey, List<X509Certificate> certificates) { in Builder() argument [all …]
|
D | ApkSigner.java | 1114 public Builder(String name, PrivateKey privateKey, List<X509Certificate> certificates) { in Builder() argument 1115 this(name, privateKey, certificates, false); in Builder() 1134 List<X509Certificate> certificates, in Builder() argument 1141 mCertificates = new ArrayList<>(certificates); in Builder() 1154 public Builder(String name, KeyConfig keyConfig, List<X509Certificate> certificates) { in Builder() argument 1155 this(name, keyConfig, certificates, false); in Builder() 1172 List<X509Certificate> certificates, in Builder() argument 1179 mCertificates = new ArrayList<>(certificates); in Builder()
|
D | SigningCertificateLineage.java | 440 List<X509Certificate> certificates = new ArrayList<>(1); in spawnDescendant() local 441 certificates.add(parent.getCertificate()); in spawnDescendant() 445 newSignerConfig.certificates = certificates; in spawnDescendant()
|
D | SourceStampVerifier.java | 408 ByteBuffer certificates = ApkSigningBlockUtilsLite.getLengthPrefixedSlice(signedData); in parseSigner() local 446 if (certificates.hasRemaining()) { in parseSigner() 447 byte[] encodedCert = ApkSigningBlockUtilsLite.readLengthPrefixedByteArray(certificates); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 268 if (signerConfig.certificates.isEmpty()) { in generateSignerBlock() 271 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignerBlock() 277 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock() 351 encodeAsSequenceOfLengthPrefixedElements(signedData.certificates)); in encodeSignedData() 418 public List<byte[]> certificates; field in V3SchemeSigner.V3SignatureSchemeBlock.SignedData
|
D | V3SchemeVerifier.java | 446 ByteBuffer certificates = getLengthPrefixedSlice(signedData); in parseSigner() local 466 while (certificates.hasRemaining()) { in parseSigner() 468 byte[] encodedCert = readLengthPrefixedByteArray(certificates); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampSigner.java | 60 if (sourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock() 74 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
|
D | V2SourceStampSigner.java | 83 if (mSourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock() 110 mSourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | X509CertificateUtils.java | 189 Collection<X509Certificate> certificates = new ArrayList<>(1); in generateCertificates() local 203 certificates.add(guaranteedEncodedCert); in generateCertificates() 205 return certificates; in generateCertificates()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | help_verify.txt | 12 --print-certs Show information about the APK's signing certificates 14 --print-certs-pem Show information about the APK's signing certificates and prints the PEM
|
D | help_lineage.txt | 12 different signing certificates. 19 --print-certs Show information about the signing certificates and their capabilities 22 --print-certs-pem Show information about the signing certificates and their capabilities 187 2. Display details about the signing certificates and their capabilities in the lineage:
|
D | help_rotate.txt | 11 different signing certificates. This can be used with APK Signature Scheme v3
|
D | help_sign.txt | 106 signing certificates changed for an APK using APK
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 742 public static List<byte[]> encodeCertificates(List<X509Certificate> certificates) in encodeCertificates() argument 744 List<byte[]> result = new ArrayList<>(certificates.size()); in encodeCertificates() 745 for (X509Certificate certificate : certificates) { in encodeCertificates() 997 List<X509Certificate> certificates = new ArrayList<>(); in getApkSignatureBlockSigners() local 1003 "Cert index " + (certificates.size() + 1) + " under signer index " in getApkSignatureBlockSigners() 1010 certificates.add(signerCert); in getApkSignatureBlockSigners() 1012 signers.add(Pair.of(certificates, signerBytes)); in getApkSignatureBlockSigners() 1143 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSignaturesOverData() 1225 signedData.certificates = new ArrayList<>(signerCerts.size()); in generatePkcs7DerEncodedMessage() 1227 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generatePkcs7DerEncodedMessage() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeSigner.java | 180 if (signerConfig.certificates.isEmpty()) { in generateSigningInfo() 183 if (signerConfig.certificates.size() != 1) { in generateSigningInfo() 188 final PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in generateSigningInfo() 190 final List<byte[]> encodedCertificates = encodeCertificates(signerConfig.certificates); in generateSigningInfo()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 100 public List<X509Certificate> certificates; field in V1SchemeSigner.SignerConfig 321 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in signManifest() 340 PublicKey publicKey = signerConfig.certificates.get(0).getPublicKey(); in getOutputEntryNames() 517 List<X509Certificate> signerCerts = signerConfig.certificates; in generateSignatureBlock()
|
D | V1SchemeVerifier.java | 537 signedDataCertificates = parseCertificates(signedData.certificates); in verifySigBlockAgainstSigFile()
|
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/ |
D | SignedData.java | 47 public List<Asn1OpaqueObject> certificates; field in SignedData
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkSignerTest.java | 3730 private static String getAllSubjectNamesFrom(Collection<X509Certificate> certificates) { in getAllSubjectNamesFrom() argument 3732 for (X509Certificate certificate : certificates) { in getAllSubjectNamesFrom()
|