Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DGuaranteedEncodedFormX509Certificate.java39 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()
DDelegatingX509Certificate.java160 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/
DBerDataValueTest.java71 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()
DBerDataValueReaderTestBase.java261 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/
DAsn1OpaqueObject.java35 public ByteBuffer getEncoded() { in getEncoded() method in Asn1OpaqueObject
DAsn1BerParser.java292 element = (T) new Asn1OpaqueObject(dataValue.getEncoded()); in parseSetOf()
592 return (T) new Asn1OpaqueObject(dataValue.getEncoded()); in convert()
DAsn1DerEncoder.java460 ByteBuffer buf = ((Asn1OpaqueObject) source).getEncoded(); in toDer()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DBerDataValue.java72 public ByteBuffer getEncoded() { in getEncoded() method in BerDataValue
DInputStreamBerDataValueReader.java224 ByteBuffer encoded = dataValue.getEncoded(); in skipConstructedIndefiniteLengthContents()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java228 expectedEncodedCert = certificate.getEncoded(); in isCurrentSignatureAsRequested()
229 actualEncodedCert = verifiedSignerCerts.get(0).getEncoded(); in isCurrentSignatureAsRequested()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DSignatureTestUtils.java114 publicKeyInfo = SubjectPublicKeyInfo.getInstance(keyPair.getPublic().getEncoded()); in generateSignature()
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java285 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()
DSigningCertificateLineage.java225 if (!Arrays.equals(currentGeneration.signingCert.getEncoded(), in spawnDescendant()
226 parent.getCertificate().getEncoded())) { in spawnDescendant()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java233 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/
DApkVerifierTest.java486 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/
DV1SchemeVerifier.java470 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()
DV1SchemeSigner.java563 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/
DV3SigningCertificateLineage.java236 byte[] prefixedCertificate = encodeAsLengthPrefixedElement(certificate.getEncoded()); in encodeSignedData()
DV3SchemeVerifier.java435 byte[] certificatePublicKeyBytes = mainCertificate.getPublicKey().getEncoded(); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java541 encodedPublicKey = publicKey.getEncoded(); in encodePublicKey()
548 .getEncoded(); in encodePublicKey()
568 result.add(certificate.getEncoded()); in encodeCertificates()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DApkSignerTool.java467 byte[] encodedCert = signerCert.getEncoded(); in verify()
500 byte[] encodedKey = publicKey.getEncoded(); in verify()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java372 byte[] certificatePublicKeyBytes = mainCertificate.getPublicKey().getEncoded(); in parseSigner()