/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeSigner.java | 208 V3SignatureSchemeBlock.Signer signer = new V3SignatureSchemeBlock.Signer(); in generateSignerBlock() local 210 signer.signedData = encodeSignedData(signedData); in generateSignerBlock() 212 signer.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock() 213 signer.maxSdkVersion = signerConfig.maxSdkVersion; in generateSignerBlock() 214 signer.publicKey = encodedPublicKey; in generateSignerBlock() 215 signer.signatures = in generateSignerBlock() 216 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock() 219 return encodeSigner(signer); in generateSignerBlock() 222 private static byte[] encodeSigner(V3SignatureSchemeBlock.Signer signer) { in encodeSigner() argument 223 byte[] signedData = encodeAsLengthPrefixedElement(signer.signedData); in encodeSigner() [all …]
|
D | V3SchemeVerifier.java | 162 for (ApkSigningBlockUtils.Result.SignerInfo signer : result.signers) { in verify() 163 sortedSigners.put(signer.minSdkVersion, signer); in verify() 174 for (ApkSigningBlockUtils.Result.SignerInfo signer : sortedSigners.values()) { in verify() 175 int currentMin = signer.minSdkVersion; in verify() 176 int currentMax = signer.maxSdkVersion; in verify() 189 if (signer.signingCertificateLineage != null) { in verify() 190 int currLineageSize = signer.signingCertificateLineage.size(); in verify() 196 lineages.add(signer.signingCertificateLineage); in verify() 259 ByteBuffer signer = getLengthPrefixedSlice(signers); in parseSigners() local 260 parseSigner(signer, certFactory, signerInfo, contentDigestsToVerify); in parseSigners()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeSigner.java | 221 V2SignatureSchemeBlock.Signer signer = new V2SignatureSchemeBlock.Signer(); in generateSignerBlock() local 232 signer.signedData = encodeAsSequenceOfLengthPrefixedElements(new byte[][] { in generateSignerBlock() 238 signer.publicKey = encodedPublicKey; in generateSignerBlock() 239 signer.signatures = new ArrayList<>(); in generateSignerBlock() 240 signer.signatures = in generateSignerBlock() 241 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock() 251 signer.signedData, in generateSignerBlock() 253 signer.signatures), in generateSignerBlock() 254 signer.publicKey, in generateSignerBlock()
|
D | V2SchemeVerifier.java | 209 ByteBuffer signer = ApkSigningBlockUtils.getLengthPrefixedSlice(signers); in parseSigners() local 211 signer, in parseSigners()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 283 for (Result.V1SchemeSignerInfo signer : v1Signers) { in verify() 285 v1SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify() 288 "Failed to encode JAR signer " + signer.getName() + " certs", e); in verify() 291 for (Result.V2SchemeSignerInfo signer : v2Signers) { in verify() 293 v2SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify() 297 + signer.getIndex() + ") certs", in verify() 614 for (V1SchemeVerifier.Result.SignerInfo signer : source.signers) { in mergeFrom() 615 mV1SchemeSigners.add(new V1SchemeSignerInfo(signer)); in mergeFrom() 617 for (V1SchemeVerifier.Result.SignerInfo signer : source.ignoredSigners) { in mergeFrom() 618 mV1SchemeIgnoredSigners.add(new V1SchemeSignerInfo(signer)); in mergeFrom() [all …]
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 265 for (SignerParams signer : signers) { in sign() 267 signer.name = "signer #" + signerNumber; in sign() 269 signer.loadPrivateKeyAndCerts(passwordRetriever); in sign() 272 "Failed to load signer \"" + signer.name + "\": " in sign() 277 System.err.println("Failed to load signer \"" + signer.name + "\""); in sign() 283 if (signer.v1SigFileBasename != null) { in sign() 284 v1SigBasename = signer.v1SigFileBasename; in sign() 285 } else if (signer.keystoreKeyAlias != null) { in sign() 286 v1SigBasename = signer.keystoreKeyAlias; in sign() 287 } else if (signer.keyFile != null) { in sign() [all …]
|
D | help_sign.txt | 6 signer. For each signer, you need to provide the signer's private key and 56 These options specify the configuration of a particular signer. To delimit 57 options of different signers, use --next-signer. 59 --next-signer Delimits options of two different signers. There is no 60 need to use this option when only one signer is used. 62 --v1-signer-name Basename for files comprising the JAR signature scheme 63 (aka v1 scheme) signature of this signer. By default, 67 There are two ways to provide the signer's private key and certificate: (1) Java 96 signer, KeyStore password is read before the key password 119 signer, KeyStore password is read before the key password [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 101 private final ApkSignerEngine signer; field in SigningExtension 143 signer = in SigningExtension() 253 signer.outputJarEntry(entryName); in onZipEntryOutput() 264 signer.outputJarEntryRemoved(entryName); in onZipEntryRemovedFromOutput() 295 addV1SignatureRequest = signer.outputJarEntries(); in onOutputZipReadyForUpdate() 356 addV2SignatureRequest = signer.outputZipSections(zipEntries, centralDir, eocd); in onOutputZipEntriesWritten() 384 signer.outputDone(); in onOutputClosed()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 513 ApkVerifier.Result.V1SchemeSignerInfo signer = signers.get(0); in testV1SchemeSignatureCertNotReencoded() local 514 for (IssueWithParams issue : signer.getErrors()) { in testV1SchemeSignatureCertNotReencoded() 909 for (ApkVerifier.Result.V1SchemeSignerInfo signer : result.getV1SchemeSigners()) { in assertVerified() 910 String signerName = signer.getName(); in assertVerified() 911 for (IssueWithParams issue : signer.getErrors()) { in assertVerified() 919 for (ApkVerifier.Result.V2SchemeSignerInfo signer : result.getV2SchemeSigners()) { in assertVerified() 920 String signerName = "signer #" + (signer.getIndex() + 1); in assertVerified() 921 for (IssueWithParams issue : signer.getErrors()) { in assertVerified() 959 for (ApkVerifier.Result.V1SchemeSignerInfo signer : result.getV1SchemeSigners()) { in assertVerificationFailure() 960 String signerName = signer.getName(); in assertVerificationFailure() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 273 Signer signer = new Signer(signerName, sigBlockEntry, sigFileEntry, signerInfo); in verify() local 274 signers.add(signer); in verify() 284 for (Signer signer : signers) { in verify() 285 signer.verifySigBlockAgainstSigFile( in verify() 287 if (signer.getResult().containsErrors()) { in verify() 288 result.signers.add(signer.getResult()); in verify() 300 for (Signer signer : signers) { in verify() 301 signer.verifySigFileAgainstManifest( in verify() 309 if (signer.isIgnored()) { in verify() 310 result.ignoredSigners.add(signer.getResult()); in verify() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | SignatureTestUtils.java | 123 ContentSigner signer = new JcaContentSignerBuilder(full).setProvider( in generateSignature() local 125 X509CertificateHolder holder = builder.build(signer); in generateSignature()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 992 for (SignerInfo signer : signers) { in containsErrors() 993 if (signer.containsErrors()) { in containsErrors()
|