Home
last modified time | relevance | path

Searched refs:pkey1 (Results 1 – 4 of 4) sorted by relevance

/external/conscrypt/src/test/java/org/conscrypt/
DNativeCryptoTest.java223 long pkey1 = 0, pkey1_copy = 0, pkey2 = 0; in test_EVP_PKEY_cmp() local
225 pkey1 = NativeCrypto.EVP_PKEY_new_RSA(privKey1.getModulus().toByteArray(), in test_EVP_PKEY_cmp()
233 assertNotSame(NULL, pkey1); in test_EVP_PKEY_cmp()
256 NativeCrypto.EVP_PKEY_cmp(pkey1, NULL); in test_EVP_PKEY_cmp()
262 NativeCrypto.EVP_PKEY_cmp(NULL, pkey1); in test_EVP_PKEY_cmp()
268 NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1)); in test_EVP_PKEY_cmp()
271 NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1_copy)); in test_EVP_PKEY_cmp()
274 NativeCrypto.EVP_PKEY_cmp(pkey1, pkey2)); in test_EVP_PKEY_cmp()
276 if (pkey1 != 0) { in test_EVP_PKEY_cmp()
277 NativeCrypto.EVP_PKEY_free(pkey1); in test_EVP_PKEY_cmp()
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/
DX509CertSelectorTest.java1084 PublicKey pkey1 = new TestKeyPair("RSA").getPublic(); in testSetSubjectPublicKeyAlgID() local
1087 TestCert cert_1 = new TestCert(pkey1); in testSetSubjectPublicKeyAlgID()
1147 PublicKey pkey1 = new TestKeyPair("RSA").getPublic(); in testSetSubjectPublicKey1() local
1150 TestCert cert_1 = new TestCert(pkey1); in testSetSubjectPublicKey1()
1158 selector.setSubjectPublicKey(pkey1); in testSetSubjectPublicKey1()
1195 PublicKey pkey1 = new TestKeyPair("RSA").getPublic(); in testSetSubjectPublicKey2() local
1198 byte[] encoding1 = pkey1.getEncoded(); in testSetSubjectPublicKey2()
1200 TestCert cert_1 = new TestCert(pkey1); in testSetSubjectPublicKey2()
/external/conscrypt/src/main/java/org/conscrypt/
DNativeCrypto.java108 public static native int EVP_PKEY_cmp(long pkey1, long pkey2); in EVP_PKEY_cmp() argument
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp2444 EVP_PKEY* pkey1 = reinterpret_cast<EVP_PKEY*>(pkey1Ref); in NativeCrypto_EVP_PKEY_cmp() local
2446 JNI_TRACE("EVP_PKEY_cmp(%p, %p)", pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp()
2448 if (pkey1 == NULL) { in NativeCrypto_EVP_PKEY_cmp()
2449 JNI_TRACE("EVP_PKEY_cmp(%p, %p) => failed pkey1 == NULL", pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp()
2453 JNI_TRACE("EVP_PKEY_cmp(%p, %p) => failed pkey2 == NULL", pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp()
2458 int result = EVP_PKEY_cmp(pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp()
2459 JNI_TRACE("EVP_PKEY_cmp(%p, %p) => %d", pkey1, pkey2, result); in NativeCrypto_EVP_PKEY_cmp()