Home
last modified time | relevance | path

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

/cts/tests/security/src/android/keystore/cts/
DCertificateUtils.java51 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/
DX509CertificateSigningTest.java97 outputStream.write(cert.getEncoded()); in testSigning()
110 assertArrayEquals(keyToSignKeyPair.getPublic().getEncoded(), in testSigning()
111 cert.getPublicKey().getEncoded()); in testSigning()
DEphemeralKeyTest.java80 assertTrue(ephemeralKeyPair.getPublic().getEncoded().length > 0); in createEphemeralKey()
81 assertTrue(ephemeralKeyPair.getPrivate().getEncoded().length > 0); in createEphemeralKey()
DUtil.java457 unprotectedHeaders.put(COSE_LABEL_X5CHAIN, cert.getEncoded()); in coseSign1Sign()
462 x5chainsArray.add(cert.getEncoded()); in coseSign1Sign()
DProvisioningTest.java426 byte[] encodedCredentialCert = certificateChain.iterator().next().getEncoded(); in deleteCredential()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIcmpMessage.java47 if (!Arrays.equals(original, getEncoded())) { in IcmpMessage()
52 public byte[] getEncoded() throws IOException { in getEncoded() method in IcmpMessage
DPingReflector.java85 packet.setData(echo.getEncoded()); in processPacket()
86 writePacket(packet.getEncoded()); in processPacket()
DIpv4Packet.java80 if (!Arrays.equals(original, getEncoded())) { in Ipv4Packet()
95 public byte[] getEncoded() throws IOException { in getEncoded() method in Ipv4Packet
/cts/tests/tests/keystore/src/android/keystore/cts/
DTransparentSecretKey.java42 public byte[] getEncoded() { in getEncoded() method in TransparentSecretKey
DImportWrappedKeyTest.java153 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()
DKeyFactoryTest.java220 MoreAsserts.assertEquals(publicKey.getEncoded(), x509EncodedSpec.getEncoded()); in testGetKeySpecWithKeystorePublicKeyAcceptsX509EncodedKeySpec()
DAndroidKeyStoreTest.java1147 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals()
1150 assertNotNull("Public keys should be encodable", pubKey.getEncoded()); in assertPrivateKeyEntryEquals()
1883 assertEquals(Arrays.toString(expectedSecret.getEncoded()), in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
1884 Arrays.toString(actualSecret.getEncoded())); in testKeyStore_KeyOperations_Wrap_Unencrypted_Success()
DKeyPairGeneratorTest.java738 if(Arrays.equals(pub1.getEncoded(), pub2.getEncoded())) { in testGenerate_EC_Different_KeysHelper()
767 if(Arrays.equals(pub1.getEncoded(), pub2.getEncoded())) { in testGenerate_RSA_Different_KeysHelper()
DTestUtils.java208 byte[] encodedForm = key.getEncoded(); in assertKeyMaterialExportable()
217 assertEquals(null, key.getEncoded()); in assertKeyMaterialNotExportable()
DKeyStoreTest.java341 privateKey.getPrivateKey().getEncoded(), in setPrivateKeyBytes()
367 key.getEncoded(), in setSecretKeyBytes()
1085 keyStore.setKeyEntry(ALIAS_SECRET, getSecretKey().getEncoded(), null); in test_KeyStore_setKeyEntry_array()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java412 assertThat(keyFromCert.getEncoded()).isEqualTo(leafKey.getEncoded()); in validateSignatureChain()
685 assertThat(fetchedCerts[0].getEncoded()).isEqualTo(certs.get(0).getEncoded()); in testCanSetKeyPairCert()
711 assertThat(fetchedCerts[i].getEncoded()).isEqualTo(chain.get(i).getEncoded()); in testCanSetKeyPairCertChain()
DCaCertManagementTest.java136 boolean installed = mDevicePolicyManager.hasCaCertInstalled(mAdmin, caCert.getEncoded()); in isCaCertInstalledAndTrusted()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DImsiEncryptionInfoTest.java61 byte[] b = publicKey.getEncoded(); in testParcel()
/cts/tests/tests/net/src/org/apache/http/conn/ssl/cts/
DAbstractVerifierTest.java189 public byte[] getEncoded() throws CertificateEncodingException { in createStubCertificate() method in AbstractVerifierTest
/cts/tests/tests/net/src/android/net/http/cts/
DSslCertificateTest.java145 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in SslCertificateTest.MockX509Certificate
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java195 messageDigest.update(certificate.getEncoded()); in getFingerprint()