Home
last modified time | relevance | path

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

12

/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/util/
DGuaranteedEncodedFormX509Certificate.java39 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in GuaranteedEncodedFormX509Certificate
49 byte[] a = this.getEncoded(); in equals()
50 byte[] b = ((X509Certificate) o).getEncoded(); in equals()
61 mHash = Arrays.hashCode(this.getEncoded()); in hashCode()
DDelegatingX509Certificate.java161 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in DelegatingX509Certificate
162 return mDelegate.getEncoded(); in getEncoded()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAttestationTest.java156 if (!Arrays.equals(secureRoot.getPublicKey().getEncoded(), in testEcAttestation()
157 rootCert.getPublicKey().getEncoded())) { in testEcAttestation()
216 final byte[] derCert = cert.getEncoded(); in verifyCertificateSignatures()
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DCertificate.java72 ByteBufferUtils.toByteArray(issuerAndSerialNumber.issuer.getEncoded()); in isMatchingCerticicate()
89 byte[] encodedForm = ByteBufferUtils.toByteArray(encodedCertificate.getEncoded()); in parseCertificates()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DX509CertificateUtilsTest.java167 return getHexEncodedDigestOfBytes(cert.getEncoded()); in getHexEncodedDigestOfCertFromResources()
179 encodedCerts.add(getHexEncodedDigestOfBytes(cert.getEncoded())); in getHexEncodedDigestsOfCertsFromResources()
/tools/apksig/src/main/java/com/android/apksig/
DApkVerifier.java358 v1SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify()
366 v2SignerCerts.add(new ByteArray(signer.getCertificate().getEncoded())); in verify()
427 if (!Arrays.equals(oldSignerCert.getEncoded(), in verify()
428 v3Signers.get(0).mCerts.get(0).getEncoded())) { in verify()
901 byte[] v4Cert = v4Certs.get(0).getEncoded(); in checkV4Certificate()
902 byte[] cert = v2v3Certs.get(0).getEncoded(); in checkV4Certificate()
DSigningCertificateLineage.java356 if (!Arrays.equals(currentGeneration.signingCert.getEncoded(), in spawnDescendant()
357 parent.getCertificate().getEncoded())) { in spawnDescendant()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java667 encodedPublicKey = publicKey.getEncoded(); in encodePublicKey()
721 .getEncoded(); in encodePublicKey()
741 result.add(certificate.getEncoded()); in encodeCertificates()
1212 new Asn1OpaqueObject(signerCertIssuer.getEncoded()), in generatePkcs7DerEncodedMessage()
1222 signedData.certificates.add(new Asn1OpaqueObject(cert.getEncoded())); in generatePkcs7DerEncodedMessage()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java494 Asn1BerParser.parse(contentInfo.content.getEncoded(), SignedData.class); in verifySigBlockAgainstSigFile()
706 signerInfo.signedAttrs.getEncoded(), Attribute.class); in verifySignerInfoAgainstSigFile()
749 ByteBuffer signedAttrsOriginalEncoding = signerInfo.signedAttrs.getEncoded(); in verifySignerInfoAgainstSigFile()
1509 return Asn1BerParser.parse(value.getEncoded(), ObjectIdentifierChoice.class).value; in getSingleObjectIdentifierValue()
1521 return Asn1BerParser.parse(value.getEncoded(), OctetStringChoice.class).value; in getSingleOctetStringValue()
/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/apksig/src/test/java/com/android/apksig/
DSourceStampVerifierTest.java398 toHex(computeSha256DigestBytes(signingCertificate.getEncoded()))); in assertSigningCertificates()
417 toHex(computeSha256DigestBytes(lineageCertificates.get(i).getEncoded()))); in assertSigningCertificatesInLineage()
DApkVerifierTest.java644 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testCorrectCertUsedFromPkcs7SignedDataCertsSet()
698 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded()
723 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded2()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4SchemeSigner.java172 encodedCertificate, additionaData, publicKey.getEncoded(), -1, null); in generateSignature()
188 encodedCertificate, additionaData, publicKey.getEncoded(), signatureAlgorithmId, in generateSignature()
DV4SchemeVerifier.java201 certificatePublicKeyBytes = certificate.getPublicKey().getEncoded(); in parseAndVerifySignatureBlock()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java275 assertEquals("02020000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues()
291 assertEquals("0280030000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1OpaqueObject.java35 public ByteBuffer getEncoded() { in getEncoded() method in Asn1OpaqueObject
DAsn1BerParser.java303 element = (T) new Asn1OpaqueObject(dataValue.getEncoded()); in parseSetOf()
603 return (T) new Asn1OpaqueObject(dataValue.getEncoded()); in convert()
/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/apksig/src/main/java/com/android/apksig/internal/apk/stamp/
DV1SourceStampSigner.java74 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
DV2SourceStampSigner.java96 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
/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/internal/apk/v3/
DV3SigningCertificateLineage.java229 byte[] prefixedCertificate = encodeAsLengthPrefixedElement(certificate.getEncoded()); in encodeSignedData()

12