Home
last modified time | relevance | path

Searched refs:signedData (Results 1 – 9 of 9) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeSigner.java183 V3SignatureSchemeBlock.SignedData signedData = new V3SignatureSchemeBlock.SignedData(); in generateSignerBlock() local
185 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
203 signedData.digests = digests; in generateSignerBlock()
204 signedData.minSdkVersion = signerConfig.minSdkVersion; in generateSignerBlock()
205 signedData.maxSdkVersion = signerConfig.maxSdkVersion; in generateSignerBlock()
206 signedData.additionalAttributes = generateAdditionalAttributes(signerConfig); in generateSignerBlock()
210 signer.signedData = encodeSignedData(signedData); in generateSignerBlock()
216 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
223 byte[] signedData = encodeAsLengthPrefixedElement(signer.signedData); in encodeSigner()
239 signedData.length in encodeSigner()
[all …]
DV3SchemeVerifier.java286 ByteBuffer signedData = getLengthPrefixedSlice(signerBlock); in parseSigner() local
287 byte[] signedDataBytes = new byte[signedData.remaining()]; in parseSigner()
288 signedData.get(signedDataBytes); in parseSigner()
289 signedData.flip(); in parseSigner()
290 result.signedData = signedDataBytes; in parseSigner()
366 signedData.position(0); in parseSigner()
367 sig.update(signedData); in parseSigner()
383 signedData.position(0); in parseSigner()
384 ByteBuffer digests = getLengthPrefixedSlice(signedData); in parseSigner()
385 ByteBuffer certificates = getLengthPrefixedSlice(signedData); in parseSigner()
[all …]
DV3SigningCertificateLineage.java116 ByteBuffer signedData = getLengthPrefixedSlice(nodeBytes); in readSigningCertificateLineage() local
134 sig.update(signedData); in readSigningCertificateLineage()
142 signedData.rewind(); in readSigningCertificateLineage()
143 byte[] encodedCert = readLengthPrefixedByteArray(signedData); in readSigningCertificateLineage()
144 int signedSigAlgorithm = signedData.getInt(); in readSigningCertificateLineage()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeSigner.java198 V2SignatureSchemeBlock.SignedData signedData = new V2SignatureSchemeBlock.SignedData(); in generateSignerBlock() local
200 signedData.certificates = encodeCertificates(signerConfig.certificates); in generateSignerBlock()
218 signedData.digests = digests; in generateSignerBlock()
219 signedData.additionalAttributes = generateAdditionalAttributes(v3SigningEnabled); in generateSignerBlock()
232 signer.signedData = encodeAsSequenceOfLengthPrefixedElements(new byte[][] { in generateSignerBlock()
233 encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes(signedData.digests), in generateSignerBlock()
234 encodeAsSequenceOfLengthPrefixedElements(signedData.certificates), in generateSignerBlock()
241 ApkSigningBlockUtils.generateSignaturesOverData(signerConfig, signer.signedData); in generateSignerBlock()
251 signer.signedData, in generateSignerBlock()
281 public byte[] signedData; field in V2SchemeSigner.V2SignatureSchemeBlock.Signer
DV2SchemeVerifier.java248 ByteBuffer signedData = ApkSigningBlockUtils.getLengthPrefixedSlice(signerBlock); in parseSigner() local
249 byte[] signedDataBytes = new byte[signedData.remaining()]; in parseSigner()
250 signedData.get(signedDataBytes); in parseSigner()
251 signedData.flip(); in parseSigner()
252 result.signedData = signedDataBytes; in parseSigner()
318 signedData.position(0); in parseSigner()
319 sig.update(signedData); in parseSigner()
335 signedData.position(0); in parseSigner()
336 ByteBuffer digests = ApkSigningBlockUtils.getLengthPrefixedSlice(signedData); in parseSigner()
337 ByteBuffer certificates = ApkSigningBlockUtils.getLengthPrefixedSlice(signedData); in parseSigner()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java572 SignedData signedData = new SignedData(); in generateSignatureBlock() local
573 signedData.certificates = new ArrayList<>(signerCerts.size()); in generateSignatureBlock()
575 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generateSignatureBlock()
577 signedData.version = 1; in generateSignatureBlock()
578 signedData.digestAlgorithms = Collections.singletonList(digestAlgorithmId); in generateSignatureBlock()
579 signedData.encapContentInfo = new EncapsulatedContentInfo(Pkcs7Constants.OID_DATA); in generateSignatureBlock()
580 signedData.signerInfos = Collections.singletonList(signerInfo); in generateSignatureBlock()
584 contentInfo.content = new Asn1OpaqueObject(Asn1DerEncoder.encode(signedData)); in generateSignatureBlock()
DV1SchemeVerifier.java461 SignedData signedData; in verifySigBlockAgainstSigFile() local
469 signedData = in verifySigBlockAgainstSigFile()
478 if (signedData.signerInfos.isEmpty()) { in verifySigBlockAgainstSigFile()
493 Collections.singletonList(signedData.signerInfos.get(0)); in verifySigBlockAgainstSigFile()
495 unverifiedSignerInfosToTry = signedData.signerInfos; in verifySigBlockAgainstSigFile()
502 signedDataCertificates = parseCertificates(signedData.certificates); in verifySigBlockAgainstSigFile()
515 signedData, in verifySigBlockAgainstSigFile()
565 SignedData signedData, in verifySignerInfoAgainstSigFile() argument
692 if (!contentType.equals(signedData.encapContentInfo.contentType)) { in verifySignerInfoAgainstSigFile()
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java240 byte[] signedData = signedDataBuffer.array(); in spawnDescendant()
253 ApkSigningBlockUtils.generateSignaturesOverData(newSignerConfig, signedData); in spawnDescendant()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java1025 public byte[] signedData; field in ApkSigningBlockUtils.Result.SignerInfo