/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | GuaranteedEncodedFormX509Certificate.java | 39 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in GuaranteedEncodedFormX509Certificate 49 byte[] a = this.getEncoded(); in equals() 50 byte[] b = ((GuaranteedEncodedFormX509Certificate) o).getEncoded(); in equals() 61 mHash = Arrays.hashCode(this.getEncoded()); in hashCode()
|
D | DelegatingX509Certificate.java | 160 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in DelegatingX509Certificate 161 return mDelegate.getEncoded(); in getEncoded()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueTest.java | 71 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncoded() 72 assertByteBufferEquals(HexEncoding.decode("cc"), TEST_VALUE2.getEncoded()); in testGetEncoded() 79 ByteBuffer encoded = TEST_VALUE1.getEncoded(); in testGetEncodedReturnsSlice() 82 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncodedReturnsSlice() 120 assertByteBufferEquals(HexEncoding.decode("30020304"), reader.readDataValue().getEncoded()); in testContentsReader() 121 assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); in testContentsReader()
|
D | BerDataValueReaderTestBase.java | 261 assertByteBufferEquals(HexEncoding.decode("37018f"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 262 assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 263 assertByteBufferEquals(HexEncoding.decode("01020304"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1OpaqueObject.java | 35 public ByteBuffer getEncoded() { in getEncoded() method in Asn1OpaqueObject
|
D | Asn1BerParser.java | 292 element = (T) new Asn1OpaqueObject(dataValue.getEncoded()); in parseSetOf() 592 return (T) new Asn1OpaqueObject(dataValue.getEncoded()); in convert()
|
D | Asn1DerEncoder.java | 460 ByteBuffer buf = ((Asn1OpaqueObject) source).getEncoded(); in toDer()
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValue.java | 72 public ByteBuffer getEncoded() { in getEncoded() method in BerDataValue
|
D | InputStreamBerDataValueReader.java | 224 ByteBuffer encoded = dataValue.getEncoded(); in skipConstructedIndefiniteLengthContents()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/ |
D | SigningExtension.java | 228 expectedEncodedCert = certificate.getEncoded(); in isCurrentSignatureAsRequested() 229 actualEncodedCert = verifiedSignerCerts.get(0).getEncoded(); in isCurrentSignatureAsRequested()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | SignatureTestUtils.java | 114 publicKeyInfo = SubjectPublicKeyInfo.getInstance(keyPair.getPublic().getEncoded()); in generateSignature()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 285 v1SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify() 293 v2SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify() 354 if (!Arrays.equals(oldSignerCert.getEncoded(), in verify() 355 v3Signers.get(0).mCerts.get(0).getEncoded())) { in verify()
|
D | SigningCertificateLineage.java | 225 if (!Arrays.equals(currentGeneration.signingCert.getEncoded(), in spawnDescendant() 226 parent.getCertificate().getEncoded())) { in spawnDescendant()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 233 assertEquals("02020000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues() 249 assertEquals("0280030000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | ApkVerifierTest.java | 486 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testCorrectCertUsedFromPkcs7SignedDataCertsSet() 540 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded() 565 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded2()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 470 Asn1BerParser.parse(contentInfo.content.getEncoded(), SignedData.class); in verifySigBlockAgainstSigFile() 682 signerInfo.signedAttrs.getEncoded(), Attribute.class); in verifySignerInfoAgainstSigFile() 725 ByteBuffer signedAttrsOriginalEncoding = signerInfo.signedAttrs.getEncoded(); in verifySignerInfoAgainstSigFile() 762 byte[] encodedForm = ByteBufferUtils.toByteArray(encodedCertificate.getEncoded()); in parseCertificates() 825 ByteBufferUtils.toByteArray(issuerAndSerialNumber.issuer.getEncoded()); in isMatchingCerticicate() 2048 return Asn1BerParser.parse(value.getEncoded(), ObjectIdentifierChoice.class).value; in getSingleObjectIdentifierValue() 2060 return Asn1BerParser.parse(value.getEncoded(), OctetStringChoice.class).value; in getSingleOctetStringValue()
|
D | V1SchemeSigner.java | 563 new Asn1OpaqueObject(signerCertIssuer.getEncoded()), in generateSignatureBlock() 575 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generateSignatureBlock()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SigningCertificateLineage.java | 236 byte[] prefixedCertificate = encodeAsLengthPrefixedElement(certificate.getEncoded()); in encodeSignedData()
|
D | V3SchemeVerifier.java | 435 byte[] certificatePublicKeyBytes = mainCertificate.getPublicKey().getEncoded(); in parseSigner()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 541 encodedPublicKey = publicKey.getEncoded(); in encodePublicKey() 548 .getEncoded(); in encodePublicKey() 568 result.add(certificate.getEncoded()); in encodeCertificates()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | ApkSignerTool.java | 467 byte[] encodedCert = signerCert.getEncoded(); in verify() 500 byte[] encodedKey = publicKey.getEncoded(); in verify()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 372 byte[] certificatePublicKeyBytes = mainCertificate.getPublicKey().getEncoded(); in parseSigner()
|