/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/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 = ((X509Certificate) o).getEncoded(); in equals() 61 mHash = Arrays.hashCode(this.getEncoded()); in hashCode()
|
D | DelegatingX509Certificate.java | 161 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/ |
D | AttestationTest.java | 156 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/ |
D | Certificate.java | 72 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/ |
D | X509CertificateUtilsTest.java | 167 return getHexEncodedDigestOfBytes(cert.getEncoded()); in getHexEncodedDigestOfCertFromResources() 179 encodedCerts.add(getHexEncodedDigestOfBytes(cert.getEncoded())); in getHexEncodedDigestsOfCertsFromResources()
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 358 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()
|
D | SigningCertificateLineage.java | 356 if (!Arrays.equals(currentGeneration.signingCert.getEncoded(), in spawnDescendant() 357 parent.getCertificate().getEncoded())) { in spawnDescendant()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 667 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/ |
D | V1SchemeVerifier.java | 494 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/ |
D | SigningExtension.java | 228 expectedEncodedCert = certificate.getEncoded(); in isCurrentSignatureAsRequested() 229 actualEncodedCert = verifiedSignerCerts.get(0).getEncoded(); in isCurrentSignatureAsRequested()
|
/tools/apksig/src/test/java/com/android/apksig/ |
D | SourceStampVerifierTest.java | 398 toHex(computeSha256DigestBytes(signingCertificate.getEncoded()))); in assertSigningCertificates() 417 toHex(computeSha256DigestBytes(lineageCertificates.get(i).getEncoded()))); in assertSigningCertificatesInLineage()
|
D | ApkVerifierTest.java | 644 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/ |
D | V4SchemeSigner.java | 172 encodedCertificate, additionaData, publicKey.getEncoded(), -1, null); in generateSignature() 188 encodedCertificate, additionaData, publicKey.getEncoded(), signatureAlgorithmId, in generateSignature()
|
D | V4SchemeVerifier.java | 201 certificatePublicKeyBytes = certificate.getPublicKey().getEncoded(); in parseAndVerifySignatureBlock()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 275 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/ |
D | Asn1OpaqueObject.java | 35 public ByteBuffer getEncoded() { in getEncoded() method in Asn1OpaqueObject
|
D | Asn1BerParser.java | 303 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/ |
D | BerDataValue.java | 72 public ByteBuffer getEncoded() { in getEncoded() method in BerDataValue
|
D | InputStreamBerDataValueReader.java | 224 ByteBuffer encoded = dataValue.getEncoded(); in skipConstructedIndefiniteLengthContents()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | V1SourceStampSigner.java | 74 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
|
D | V2SourceStampSigner.java | 96 sourceStampSignerConfig.certificates.get(0).getEncoded(); in generateSourceStampBlock()
|
/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/internal/apk/v3/ |
D | V3SigningCertificateLineage.java | 229 byte[] prefixedCertificate = encodeAsLengthPrefixedElement(certificate.getEncoded()); in encodeSignedData()
|