Home
last modified time | relevance | path

Searched refs:certificates (Results 1 – 22 of 22) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java226 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
DV2SchemeVerifier.java342 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/
DAttestationTest.java142 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/
DDefaultApkSignerEngine.java261 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 …]
DApkSigner.java1114 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()
DSigningCertificateLineage.java440 List<X509Certificate> certificates = new ArrayList<>(1); in spawnDescendant() local
441 certificates.add(parent.getCertificate()); in spawnDescendant()
445 newSignerConfig.certificates = certificates; in spawnDescendant()
DSourceStampVerifier.java408 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/
DV3SchemeSigner.java268 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
DV3SchemeVerifier.java446 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/
DV1SourceStampSigner.java60 if (sourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock()
74 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
DV2SourceStampSigner.java83 if (mSourceStampSignerConfig.certificates.isEmpty()) { in generateSourceStampBlock()
110 mSourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java189 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/
Dhelp_verify.txt12 --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
Dhelp_lineage.txt12 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:
Dhelp_rotate.txt11 different signing certificates. This can be used with APK Signature Scheme v3
Dhelp_sign.txt106 signing certificates changed for an APK using APK
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java742 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/
DV4SchemeSigner.java180 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/
DV1SchemeSigner.java100 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()
DV1SchemeVerifier.java537 signedDataCertificates = parseCertificates(signedData.certificates); in verifySigBlockAgainstSigFile()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DSignedData.java47 public List<Asn1OpaqueObject> certificates; field in SignedData
/tools/apksig/src/test/java/com/android/apksig/
DApkSignerTest.java3730 private static String getAllSubjectNamesFrom(Collection<X509Certificate> certificates) { in getAllSubjectNamesFrom() argument
3732 for (X509Certificate certificate : certificates) { in getAllSubjectNamesFrom()