Home
last modified time | relevance | path

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

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipherRSA.java433 private NativeRef.EVP_PKEY_CTX pkeyCtx; field in OpenSSLCipherRSA.OAEP
530 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
539 pkeyCtx.address, NativeConstants.RSA_PKCS1_OAEP_PADDING); in doCryptoInit()
540 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx.address, oaepMd); in doCryptoInit()
541 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx.address, mgf1Md); in doCryptoInit()
543 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_label(pkeyCtx.address, label); in doCryptoInit()
592 return NativeCrypto.EVP_PKEY_encrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
594 return NativeCrypto.EVP_PKEY_decrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
DNativeCrypto.java276 static native void EVP_PKEY_CTX_free(long pkeyCtx); in EVP_PKEY_CTX_free() argument
487 …ic native void X509_verify(long x509ctx, OpenSSLX509Certificate holder, NativeRef.EVP_PKEY pkeyCtx) in X509_verify() argument
557 NativeRef.EVP_PKEY pkeyCtx) throws BadPaddingException, SignatureException, in X509_CRL_verify() argument
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLCipherRSA.java449 private NativeRef.EVP_PKEY_CTX pkeyCtx; field in OpenSSLCipherRSA.OAEP
546 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
555 pkeyCtx.address, NativeConstants.RSA_PKCS1_OAEP_PADDING); in doCryptoInit()
556 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx.address, oaepMd); in doCryptoInit()
557 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx.address, mgf1Md); in doCryptoInit()
559 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_label(pkeyCtx.address, label); in doCryptoInit()
608 return NativeCrypto.EVP_PKEY_encrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
610 return NativeCrypto.EVP_PKEY_decrypt(pkeyCtx, output, 0, tmpBuf, 0, tmpBuf.length); in doCryptoOperation()
DNativeCrypto.java285 static native void EVP_PKEY_CTX_free(long pkeyCtx); in EVP_PKEY_CTX_free() argument
502 …ic native void X509_verify(long x509ctx, OpenSSLX509Certificate holder, NativeRef.EVP_PKEY pkeyCtx) in X509_verify() argument
576 NativeRef.EVP_PKEY pkeyCtx) throws BadPaddingException, SignatureException, in X509_CRL_verify() argument
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc2984 EVP_PKEY_CTX* pkeyCtx = fromContextObject<EVP_PKEY_CTX>(env, evpPkeyCtxRef); in evpPkeyEncryptDecrypt() local
2985 JNI_TRACE_MD("%s(%p, %p, %d, %p, %d, %d)", jniName, pkeyCtx, outJavaBytes, outOffset, in evpPkeyEncryptDecrypt()
2988 if (pkeyCtx == nullptr) { in evpPkeyEncryptDecrypt()
3017 if (!encrypt_decrypt_func(pkeyCtx, outBuf + outOffset, &outLength, inBuf + inOffset, in evpPkeyEncryptDecrypt()
3019 JNI_TRACE("ctx=%p %s => threw exception", pkeyCtx, jniName); in evpPkeyEncryptDecrypt()
3025 JNI_TRACE("%s(%p, %p, %d, %p, %d, %d) => success (%zd bytes)", jniName, pkeyCtx, outJavaBytes, in evpPkeyEncryptDecrypt()
3055 bssl::UniquePtr<EVP_PKEY_CTX> pkeyCtx(EVP_PKEY_CTX_new(pkey, nullptr)); in evpPkeyEcryptDecryptInit() local
3056 if (pkeyCtx.get() == nullptr) { in evpPkeyEcryptDecryptInit()
3063 if (!real_func(pkeyCtx.get())) { in evpPkeyEcryptDecryptInit()
3070 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.java3135 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx() local
3136 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3137 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3148 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx() local
3149 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()
3150 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DNativeCryptoTest.java3144 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx() local
3145 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3146 NativeCrypto.EVP_PKEY_CTX_set_rsa_mgf1_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_mgf1_md_NullMdCtx()
3157 long pkeyCtx = getRawPkeyCtxForEncrypt(); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx() local
3158 NativeRef.EVP_PKEY_CTX holder = new NativeRef.EVP_PKEY_CTX(pkeyCtx); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()
3159 NativeCrypto.EVP_PKEY_CTX_set_rsa_oaep_md(pkeyCtx, NULL); in EVP_PKEY_CTX_set_rsa_oaep_md_NullMdCtx()