/cts/tests/security/src/android/keystore/cts/ |
D | CertificateUtils.java | 51 X500Name.getInstance(issuer.getEncoded()), in createCertificate() 55 X500Name.getInstance(subject.getEncoded()), in createCertificate() 56 SubjectPublicKeyInfo.getInstance(keyPair.getPublic().getEncoded())); in createCertificate() 78 new ByteArrayInputStream(x509holder.getEncoded())); in createCertificate()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | X509CertificateSigningTest.java | 97 outputStream.write(cert.getEncoded()); in testSigning() 110 assertArrayEquals(keyToSignKeyPair.getPublic().getEncoded(), in testSigning() 111 cert.getPublicKey().getEncoded()); in testSigning()
|
D | EphemeralKeyTest.java | 80 assertTrue(ephemeralKeyPair.getPublic().getEncoded().length > 0); in createEphemeralKey() 81 assertTrue(ephemeralKeyPair.getPrivate().getEncoded().length > 0); in createEphemeralKey()
|
D | ProvisioningTest.java | 427 byte[] encodedCredentialCert = certificateChain.iterator().next().getEncoded(); in deleteCredentialByName() 466 byte[] encodedCredentialCert = certificateChain.iterator().next().getEncoded(); in deleteCredential() 507 byte[] encodedCredentialCert = certificateChain.iterator().next().getEncoded(); in proofOfOwnership()
|
D | Util.java | 497 unprotectedHeaders.put(COSE_LABEL_X5CHAIN, cert.getEncoded()); in coseSign1Sign() 502 x5chainsArray.add(cert.getEncoded()); in coseSign1Sign()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | TransparentSecretKey.java | 42 public byte[] getEncoded() { in getEncoded() method in TransparentSecretKey
|
D | ImportWrappedKeyTest.java | 153 byte[] keyMaterial = kg.generateKey().getEncoded(); in testKeyStore_ImportWrappedKey_3DES() 201 byte[] keyMaterial = kg.generateKey().getEncoded(); in testKeyStore_ImportWrappedKey_3DES_StrongBox() 333 byte[] aad = wrappedKeyDescription.getEncoded(); in wrapKey() 353 return new DERSequence(items).getEncoded(ASN1Encoding.DER); in wrapKey()
|
D | TestUtils.java | 237 assertTrue("Key1:\n" + HexDump.dumpHexString(keyPair.getPublic().getEncoded()) in assertKeyStoreKeyPair() 238 + "\nKey2:\n" + HexDump.dumpHexString(keystorePublicKey.getEncoded()) + "\n", in assertKeyStoreKeyPair() 239 Arrays.equals(keyPair.getPublic().getEncoded(), keystorePublicKey.getEncoded())); in assertKeyStoreKeyPair() 265 byte[] encodedForm = key.getEncoded(); in assertKeyMaterialExportable() 274 assertEquals(null, key.getEncoded()); in assertKeyMaterialNotExportable()
|
D | KeyFactoryTest.java | 220 MoreAsserts.assertEquals(publicKey.getEncoded(), x509EncodedSpec.getEncoded()); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
|
D | KeyPairGeneratorTest.java | 741 if(Arrays.equals(pub1.getEncoded(), pub2.getEncoded())) { in testGenerate_EC_Different_KeysHelper() 770 if(Arrays.equals(pub1.getEncoded(), pub2.getEncoded())) { in testGenerate_RSA_Different_KeysHelper() 1649 Log.i("KeyPairGeneratorTest", HexDump.dumpHexString(certificate.getEncoded())); in assertSelfSignedCertificateSignatureVerifies() 1672 assertTrue(Arrays.equals(keyPair.getPublic().getEncoded(), in assertGeneratedKeyPairAndSelfSignedCertificate() 1673 cert.getPublicKey().getEncoded())); in assertGeneratedKeyPairAndSelfSignedCertificate()
|
D | AndroidKeyStoreTest.java | 1151 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals() 1154 assertNotNull("Public keys should be encodable", pubKey.getEncoded()); in assertPrivateKeyEntryEquals() 1924 assertEquals(Arrays.toString(expectedSecret.getEncoded()), in testKeyStore_KeyOperations_Wrap_Unencrypted_Success() 1925 Arrays.toString(actualSecret.getEncoded())); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
|
D | KeyStoreTest.java | 342 privateKey.getPrivateKey().getEncoded(), in setPrivateKeyBytes() 368 key.getEncoded(), in setSecretKeyBytes() 1081 keyStore.setKeyEntry(ALIAS_SECRET, getSecretKey().getEncoded(), null); in test_KeyStore_setKeyEntry_array()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | IcmpMessage.java | 47 if (!Arrays.equals(original, getEncoded())) { in IcmpMessage() 52 public byte[] getEncoded() throws IOException { in getEncoded() method in IcmpMessage
|
D | PingReflector.java | 85 packet.setData(echo.getEncoded()); in processPacket() 86 writePacket(packet.getEncoded()); in processPacket()
|
D | Ipv4Packet.java | 80 if (!Arrays.equals(original, getEncoded())) { in Ipv4Packet() 95 public byte[] getEncoded() throws IOException { in getEncoded() method in Ipv4Packet
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | ImsiEncryptionInfoTest.java | 61 byte[] b = publicKey.getEncoded(); in testParcel()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 319 assertThat(keyFromCert.getEncoded()).isEqualTo(leafKey.getEncoded()); in validateSignatureChain() 627 .that(devUniqueAttestationIntermediate.getEncoded()) in testUniqueDeviceAttestationUsingDifferentAttestationCert() 628 .isNotEqualTo(keyAttestationIntermediate.getEncoded()); in testUniqueDeviceAttestationUsingDifferentAttestationCert() 693 assertThat(fetchedCerts[0].getEncoded()).isEqualTo(certs.get(0).getEncoded()); in testCanSetKeyPairCert() 720 assertThat(fetchedCerts[i].getEncoded()).isEqualTo(chain.get(i).getEncoded()); in testCanSetKeyPairCertChain()
|
/cts/tests/tests/wifi/src/android/net/wifi/passpoint/cts/ |
D | PasspointConfigurationTest.java | 246 MessageDigest.getInstance("SHA-256").digest(FakeKeys.CLIENT_CERT.getEncoded())); in createCredentialWithCertificateCredential() 249 .digest(FakeKeys.CLIENT_SUITE_B_RSA3072_CERT.getEncoded())); in createCredentialWithCertificateCredential()
|
/cts/tests/tests/apache-http/src/org/apache/http/conn/ssl/cts/ |
D | AbstractVerifierTest.java | 189 public byte[] getEncoded() throws CertificateEncodingException { in createStubCertificate() method in AbstractVerifierTest
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | CredentialManagementAppTest.java | 270 assertThat(fetchedCerts[0].getEncoded()).isEqualTo(certificates.get(0).getEncoded()); in setKeyPairCertificate_isCredentialManagementApp_success()
|
D | CaCertManagementTest.java | 219 boolean isInstalled = remoteDpm.hasCaCertInstalled(DPC_COMPONENT_NAME, caCert.getEncoded()); in assertCaCertInstalledAndTrusted()
|
/cts/tests/tests/apache-http/src/android/net/http/cts/ |
D | SslCertificateTest.java | 145 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in SslCertificateTest.MockX509Certificate
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CertificateTest.java | 193 messageDigest.update(certificate.getEncoded()); in getFingerprint()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiHotspot2Test.java | 426 FakeKeys.CLIENT_CERT.getEncoded())); in createCredentialWithCertificateCredential()
|
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTests.java | 576 targetSharedUidInfo.signingInfo.getApkContentsSigners()).get(0).getEncoded(); in queriesNothing_hasSigningCertificate_consistentVisibility() 578 targetUidInfo.signingInfo.getApkContentsSigners()).get(0).getEncoded(); in queriesNothing_hasSigningCertificate_consistentVisibility() 596 targetSharedUidInfo.signingInfo.getApkContentsSigners()).get(0).getEncoded(); in queriesNothingHasPermission_hasSigningCertificate_consistentVisibility() 598 targetUidInfo.signingInfo.getApkContentsSigners()).get(0).getEncoded(); in queriesNothingHasPermission_hasSigningCertificate_consistentVisibility()
|