Home
last modified time | relevance | path

Searched refs:javaKey (Results 1 – 3 of 3) sorted by relevance

/external/conscrypt/src/main/java/org/conscrypt/
DCryptoUpcalls.java58 public static byte[] rawSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in rawSignDigestWithPrivateKey() argument
63 String keyAlgorithm = javaKey.getAlgorithm(); in rawSignDigestWithPrivateKey()
73 throw new RuntimeException("Unexpected key type: " + javaKey.toString()); in rawSignDigestWithPrivateKey()
81 signature.initSign(javaKey); in rawSignDigestWithPrivateKey()
103 signature.initSign(javaKey); in rawSignDigestWithPrivateKey()
120 System.err.println("Exception while signing message with " + javaKey.getAlgorithm() in rawSignDigestWithPrivateKey()
127 public static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaDecryptWithPrivateKey() argument
129 String keyAlgorithm = javaKey.getAlgorithm(); in rsaDecryptWithPrivateKey()
157 c.init(Cipher.DECRYPT_MODE, javaKey); in rsaDecryptWithPrivateKey()
179 c.init(Cipher.DECRYPT_MODE, javaKey); in rsaDecryptWithPrivateKey()
[all …]
/external/conscrypt/src/compat/java/org/conscrypt/
DPlatform.java175 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() argument
194 if (!superClass.isInstance(javaKey)) { in wrapRsaKey()
201 + javaKey.getClass().getCanonicalName()); in wrapRsaKey()
214 opensslKey = getKey.invoke(javaKey); in wrapRsaKey()
220 Log.e(TAG, "Could not getOpenSSLKey on instance: " + javaKey.toString()); in wrapRsaKey()
253 Log.e(TAG, "Error during conversion of privatekey instance: " + javaKey.toString(), e); in wrapRsaKey()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp3014 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, argument
3016 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes);
3031 RSA_set_app_data(rsa.get(), env->NewGlobalRef(javaKey));
3048 ex_data->private_key = env->NewGlobalRef(javaKey);
3069 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, argument
3072 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group);
3095 ECDSA_set_ex_data(ecKey.get(), EcdsaGetExDataIndex(), env->NewGlobalRef(javaKey));
3106 ex_data->private_key = env->NewGlobalRef(javaKey);