Home
last modified time | relevance | path

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

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipherRSA.java413 private NativeRef.EVP_PKEY_CTX pkeyCtx; field in OpenSSLCipherRSA.OAEP
507 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
516 pkeyCtx.context, NativeConstants.RSA_PKCS1_OAEP_PADDING); in doCryptoInit()
517 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx.context, oaepMd); in doCryptoInit()
518 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx.context, mgf1Md); in doCryptoInit()
520 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_label(pkeyCtx.context, label); in doCryptoInit()
569 return NativeCrypto.EVP_PKEY_encrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
571 return NativeCrypto.EVP_PKEY_decrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
DNativeCrypto.java235 static native void EVP_PKEY_CTX_free(long pkeyCtx); in EVP_PKEY_CTX_free() argument
420 static native void X509_verify(long x509ctx, NativeRef.EVP_PKEY pkeyCtx) in X509_verify() argument
487 static native void X509_CRL_verify(long x509CrlCtx, NativeRef.EVP_PKEY pkeyCtx); in X509_CRL_verify() argument
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp2676 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()
[all …]
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java3023 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx() local
3024 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3025 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3035 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx() local
3036 new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()
3037 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()