Lines Matching refs:pkeyCtx
2676 EVP_PKEY_CTX* pkeyCtx = fromContextObject<EVP_PKEY_CTX>(env, evpPkeyCtxRef); in evpPkeyEncryptDecrypt() local
2677 JNI_TRACE_MD("%s(%p, %p, %d, %p, %d, %d)", jniName, pkeyCtx, outJavaBytes, outOffset, in evpPkeyEncryptDecrypt()
2680 if (pkeyCtx == nullptr) { in evpPkeyEncryptDecrypt()
2707 if (!encrypt_decrypt_func(pkeyCtx, outBuf + outOffset, &outLength, inBuf + inOffset, in evpPkeyEncryptDecrypt()
2709 JNI_TRACE("ctx=%p %s => threw exception", pkeyCtx, jniName); in evpPkeyEncryptDecrypt()
2714 JNI_TRACE("%s(%p, %p, %d, %p, %d, %d) => success (%zd bytes)", jniName, pkeyCtx, outJavaBytes, in evpPkeyEncryptDecrypt()
2742 bssl::UniquePtr<EVP_PKEY_CTX> pkeyCtx(EVP_PKEY_CTX_new(pkey, nullptr)); in evpPkeyEcryptDecryptInit() local
2743 if (pkeyCtx.get() == nullptr) { in evpPkeyEcryptDecryptInit()
2749 if (!real_func(pkeyCtx.get())) { in evpPkeyEcryptDecryptInit()
2755 JNI_TRACE("EVP_PKEY_%s_init(%p) => pkeyCtx=%p", opType, pkey, pkeyCtx.get()); in evpPkeyEcryptDecryptInit()
2756 return reinterpret_cast<uintptr_t>(pkeyCtx.release()); in evpPkeyEcryptDecryptInit()
2768 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); in NativeCrypto_EVP_PKEY_CTX_free() local
2769 JNI_TRACE("EVP_PKEY_CTX_free(%p)", pkeyCtx); in NativeCrypto_EVP_PKEY_CTX_free()
2771 if (pkeyCtx != nullptr) { in NativeCrypto_EVP_PKEY_CTX_free()
2772 EVP_PKEY_CTX_free(pkeyCtx); in NativeCrypto_EVP_PKEY_CTX_free()
2777 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding() local
2778 JNI_TRACE("EVP_PKEY_CTX_set_rsa_padding(%p, %d)", pkeyCtx, pad); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
2779 if (pkeyCtx == nullptr) { in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
2784 int result = EVP_PKEY_CTX_set_rsa_padding(pkeyCtx, static_cast<int>(pad)); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
2786 JNI_TRACE("ctx=%p EVP_PKEY_CTX_set_rsa_padding => threw exception", pkeyCtx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
2792 JNI_TRACE("EVP_PKEY_CTX_set_rsa_padding(%p, %d) => success", pkeyCtx, pad); in NativeCrypto_EVP_PKEY_CTX_set_rsa_padding()
2797 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(ctx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen() local
2798 JNI_TRACE("EVP_PKEY_CTX_set_rsa_pss_saltlen(%p, %d)", pkeyCtx, len); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
2799 if (pkeyCtx == nullptr) { in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
2804 int result = EVP_PKEY_CTX_set_rsa_pss_saltlen(pkeyCtx, static_cast<int>(len)); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
2806 JNI_TRACE("ctx=%p EVP_PKEY_CTX_set_rsa_pss_saltlen => threw exception", pkeyCtx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
2812 JNI_TRACE("EVP_PKEY_CTX_set_rsa_pss_saltlen(%p, %d) => success", pkeyCtx, len); in NativeCrypto_EVP_PKEY_CTX_set_rsa_pss_saltlen()
2817 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); in evpPkeyCtxCtrlMdOp() local
2819 JNI_TRACE("%s(%p, %p)", jniName, pkeyCtx, md); in evpPkeyCtxCtrlMdOp()
2820 if (pkeyCtx == nullptr) { in evpPkeyCtxCtrlMdOp()
2829 int result = ctrl_func(pkeyCtx, md); in evpPkeyCtxCtrlMdOp()
2831 JNI_TRACE("ctx=%p %s => threw exception", pkeyCtx, jniName); in evpPkeyCtxCtrlMdOp()
2836 JNI_TRACE("%s(%p, %p) => success", jniName, pkeyCtx, md); in evpPkeyCtxCtrlMdOp()
2853 EVP_PKEY_CTX* pkeyCtx = reinterpret_cast<EVP_PKEY_CTX*>(pkeyCtxRef); in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label() local
2854 JNI_TRACE("EVP_PKEY_CTX_set_rsa_oaep_label(%p, %p)", pkeyCtx, labelJava); in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label()
2855 if (pkeyCtx == nullptr) { in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label()
2868 int result = EVP_PKEY_CTX_set0_rsa_oaep_label(pkeyCtx, label.get(), labelBytes.size()); in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label()
2870 JNI_TRACE("ctx=%p EVP_PKEY_CTX_set_rsa_oaep_label => threw exception", pkeyCtx); in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label()
2877 JNI_TRACE("EVP_PKEY_CTX_set_rsa_oaep_label(%p, %p) => success", pkeyCtx, labelJava); in NativeCrypto_EVP_PKEY_CTX_set_rsa_oaep_label()