/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLEngine.java | 71 OpenSSLKey pkey = new OpenSSLKey(keyRef, this, id); 73 return pkey.getPrivateKey(); 89 OpenSSLKey pkey = new OpenSSLKey(keyRef, this, id); 91 return pkey.getSecretKey(algorithm);
|
H A D | OpenSSLSignature.java | 122 private void checkEngineType(OpenSSLKey pkey) throws InvalidKeyException { argument 123 final int pkeyType = NativeCrypto.EVP_PKEY_type(pkey.getPkeyContext()); 151 OpenSSLKey pkey = ((OpenSSLKeyHolder) privateKey).getOpenSSLKey(); 152 checkEngineType(pkey); 153 key = pkey; 193 OpenSSLKey pkey = ((OpenSSLKeyHolder) publicKey).getOpenSSLKey(); 194 checkEngineType(pkey); 195 key = pkey;
|
H A D | NativeCrypto.java | 93 public static native int EVP_PKEY_size(long pkey); argument 95 public static native int EVP_PKEY_type(long pkey); argument 101 public static native void EVP_PKEY_free(long pkey); argument 105 public static native byte[] i2d_PKCS8_PRIV_KEY_INFO(long pkey); argument 109 public static native byte[] i2d_PUBKEY(long pkey); argument 115 public static native int RSA_size(long pkey); argument 117 public static native int RSA_private_encrypt(int flen, byte[] from, byte[] to, long pkey, argument 120 public static native int RSA_public_decrypt(int flen, byte[] from, byte[] to, long pkey, argument 123 public static native int RSA_public_encrypt(int flen, byte[] from, byte[] to, long pkey, argument 126 public static native int RSA_private_decrypt(int flen, byte[] from, byte[] to, long pkey, argument 777 SSL_set1_tls_channel_id(long ssl, long pkey) argument 790 SSL_use_PrivateKey(long ssl, long pkey) argument [all...] |
H A D | OpenSSLX509Certificate.java | 330 private void verifyOpenSSL(OpenSSLKey pkey) throws CertificateException, argument 334 NativeCrypto.X509_verify(mContext, pkey.getPkeyContext()); 366 OpenSSLKey pkey = ((OpenSSLKeyHolder) key).getOpenSSLKey(); 367 verifyOpenSSL(pkey); 397 OpenSSLKey pkey = new OpenSSLKey(NativeCrypto.X509_get_pubkey(mContext)); 398 return pkey.getPublicKey();
|
H A D | OpenSSLX509CRL.java | 196 private void verifyOpenSSL(OpenSSLKey pkey) throws CRLException, NoSuchAlgorithmException, argument 198 NativeCrypto.X509_CRL_verify(mContext, pkey.getPkeyContext()); 227 OpenSSLKey pkey = ((OpenSSLKeyHolder) key).getOpenSSLKey(); 228 verifyOpenSSL(pkey);
|
/libcore/crypto/src/main/native/ |
H A D | org_conscrypt_NativeCrypto.cpp | 1283 Unique_EVP_PKEY pkey(ENGINE_load_private_key(e, id.c_str(), NULL, NULL)); 1284 if (pkey.get() == NULL) { 1289 JNI_TRACE("ENGINE_load_private_key(%p, %p) => %p", e, idJava, pkey.get()); 1290 return reinterpret_cast<uintptr_t>(pkey.release()); 1396 Unique_EVP_PKEY pkey(EVP_PKEY_new()); 1397 if (pkey.get() == NULL) { 1401 if (EVP_PKEY_assign_DSA(pkey.get(), dsa.get()) != 1) { 1407 p, q, g, pub_key, priv_key, pkey.get()); 1408 return reinterpret_cast<jlong>(pkey.release()); 1493 Unique_EVP_PKEY pkey(EVP_PKEY_ne 1610 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1627 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1641 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1671 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1701 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1733 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1786 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1855 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1873 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1930 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 1968 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 2135 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 2773 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 2796 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 2819 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 3107 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 3279 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 3376 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 4156 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 4587 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 6303 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 6339 EVP_PKEY* pkey = reinterpret_cast<EVP_PKEY*>(pkeyRef); local 6997 EVP_PKEY* pkey = X509_PUBKEY_get(peer->cert_info->key); local [all...] |
/libcore/crypto/src/test/java/org/conscrypt/ |
H A D | NativeCryptoTest.java | 2116 long pkey = NULL; 2134 pkey = NativeCrypto.ENGINE_load_private_key(engine, rsaPem); 2135 assertTrue(pkey != 0); 2137 if (pkey != NULL) { 2138 NativeCrypto.EVP_PKEY_free(pkey);
|