Home
last modified time | relevance | path

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

/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DCryptoUpcalls.java60 static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in ecSignDigestWithPrivateKey() argument
63 String keyAlgorithm = javaKey.getAlgorithm(); in ecSignDigestWithPrivateKey()
65 throw new RuntimeException("Unexpected key type: " + javaKey.toString()); in ecSignDigestWithPrivateKey()
68 return signDigestWithPrivateKey(javaKey, message, "NONEwithECDSA"); in ecSignDigestWithPrivateKey()
71 private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, in signDigestWithPrivateKey() argument
80 signature.initSign(javaKey); in signDigestWithPrivateKey()
102 signature.initSign(javaKey); in signDigestWithPrivateKey()
122 "Exception while signing message with " + javaKey.getAlgorithm() in signDigestWithPrivateKey()
129 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() argument
132 return rsaOpWithPrivateKey(javaKey, openSSLPadding, Cipher.ENCRYPT_MODE, message); in rsaSignDigestWithPrivateKey()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DCryptoUpcalls.java59 static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in ecSignDigestWithPrivateKey() argument
62 String keyAlgorithm = javaKey.getAlgorithm(); in ecSignDigestWithPrivateKey()
64 throw new RuntimeException("Unexpected key type: " + javaKey.toString()); in ecSignDigestWithPrivateKey()
67 return signDigestWithPrivateKey(javaKey, message, "NONEwithECDSA"); in ecSignDigestWithPrivateKey()
70 private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, in signDigestWithPrivateKey() argument
79 signature.initSign(javaKey); in signDigestWithPrivateKey()
101 signature.initSign(javaKey); in signDigestWithPrivateKey()
121 "Exception while signing message with " + javaKey.getAlgorithm() in signDigestWithPrivateKey()
128 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() argument
131 return rsaOpWithPrivateKey(javaKey, openSSLPadding, Cipher.ENCRYPT_MODE, message); in rsaSignDigestWithPrivateKey()
[all …]
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java445 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() argument
464 if (!superClass.isInstance(javaKey)) { in wrapRsaKey()
470 + javaKey.getClass().getCanonicalName()); in wrapRsaKey()
483 opensslKey = getKey.invoke(javaKey); in wrapRsaKey()
489 Log.e(TAG, "Could not getOpenSSLKey on instance: " + javaKey.toString()); in wrapRsaKey()
522 Log.e(TAG, "Error during conversion of privatekey instance: " + javaKey.toString(), e); in wrapRsaKey()
/external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/
DPlatform.java340 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DPlatform.java339 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc1273 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getRSAPrivateKeyWrapper() argument
1276 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes); in NativeCrypto_getRSAPrivateKeyWrapper()
1299 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getRSAPrivateKeyWrapper()
1318 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p) => %p", javaKey, modulusBytes, pkey.get()); in NativeCrypto_getRSAPrivateKeyWrapper()
1322 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getECPrivateKeyWrapper() argument
1326 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1340 JNI_TRACE("getECPrivateKeyWrapper(%p, %p) => EC_KEY_set_group error", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1346 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getECPrivateKeyWrapper()