Searched defs:pkeyCtx (Results 1 - 3 of 3) sorted by relevance

/external/conscrypt/common/src/main/java/org/conscrypt/
H A DOpenSSLCipherRSA.java413 private NativeRef.EVP_PKEY_CTX pkeyCtx; field in class:OpenSSLCipherRSA.OAEP
507 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting
516 pkeyCtx.context, NativeConstants.RSA_PKCS1_OAEP_PADDING);
517 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx.context, oaepMd);
518 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx.context, mgf1Md);
520 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_label(pkeyCtx.context, label);
569 return NativeCrypto.EVP_PKEY_encrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length);
571 return NativeCrypto.EVP_PKEY_decrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length);
H A DNativeCrypto.java235 static native void EVP_PKEY_CTX_free(long pkeyCtx); argument
420 static native void X509_verify(long x509ctx, NativeRef.EVP_PKEY pkeyCtx) argument
487 static native void X509_CRL_verify(long x509CrlCtx, NativeRef.EVP_PKEY pkeyCtx); argument
/external/conscrypt/common/src/jni/main/cpp/
H A DNativeCrypto.cpp2676 EVP_PKEY_CTX* pkeyCtx = fromContextObject<EVP_PKEY_CTX>(env, evpPkeyCtxRef); local
2677 JNI_TRACE_MD("%s(%p, %p, %d, %p, %d, %d)", jniName, pkeyCtx, outJavaBytes, outOffset,
2680 if (pkeyCtx == nullptr) {
2707 if (!encrypt_decrypt_func(pkeyCtx, outBuf + outOffset, &outLength, inBuf + inOffset,
2709 JNI_TRACE("ctx=%p %s => threw exception", pkeyCtx, jniName);
2714 JNI_TRACE("%s(%p, %p, %d, %p, %d, %d) => success (%zd bytes)", jniName, pkeyCtx, outJavaBytes,
2742 bssl::UniquePtr<EVP_PKEY_CTX> pkeyCtx(EVP_PKEY_CTX_new(pkey, nullptr));
2743 if (pkeyCtx.get() == nullptr) {
2749 if (!real_func(pkeyCtx.get())) {
2755 JNI_TRACE("EVP_PKEY_%s_init(%p) => pkeyCtx
2768 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); local
2777 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); local
2797 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); local
2817 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); local
2853 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); local
[all...]

Completed in 205 milliseconds