Home
last modified time | relevance | path

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

/external/conscrypt/common/src/main/java/org/conscrypt/
DCryptoUpcalls.java61 static byte[] rawSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in rawSignDigestWithPrivateKey() argument
66 String keyAlgorithm = javaKey.getAlgorithm(); in rawSignDigestWithPrivateKey()
76 throw new RuntimeException("Unexpected key type: " + javaKey.toString()); in rawSignDigestWithPrivateKey()
86 signature.initSign(javaKey); in rawSignDigestWithPrivateKey()
108 signature.initSign(javaKey); in rawSignDigestWithPrivateKey()
125 System.err.println("Exception while signing message with " + javaKey.getAlgorithm() in rawSignDigestWithPrivateKey()
132 static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaDecryptWithPrivateKey() argument
134 String keyAlgorithm = javaKey.getAlgorithm(); in rsaDecryptWithPrivateKey()
164 c.init(Cipher.DECRYPT_MODE, javaKey); in rsaDecryptWithPrivateKey()
186 c.init(Cipher.DECRYPT_MODE, javaKey); in rsaDecryptWithPrivateKey()
[all …]
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java408 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() argument
427 if (!superClass.isInstance(javaKey)) { in wrapRsaKey()
435 + javaKey.getClass().getCanonicalName()); in wrapRsaKey()
448 opensslKey = getKey.invoke(javaKey); in wrapRsaKey()
454 Log.e(TAG, "Could not getOpenSSLKey on instance: " + javaKey.toString()); in wrapRsaKey()
487 Log.e(TAG, "Error during conversion of privatekey instance: " + javaKey.toString(), e); in wrapRsaKey()
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DPlatform.java279 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
/external/conscrypt/common/src/jni/main/cpp/
DNativeCrypto.cpp1163 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getRSAPrivateKeyWrapper() argument
1165 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes); in NativeCrypto_getRSAPrivateKeyWrapper()
1182 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getRSAPrivateKeyWrapper()
1202 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getECPrivateKeyWrapper() argument
1205 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1219 JNI_TRACE("getECPrivateKeyWrapper(%p, %p) => EC_KEY_set_group error", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1225 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getECPrivateKeyWrapper()