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()
103 signature.initSign(javaKey); in signDigestWithPrivateKey()
129 "Exception while signing message with " + javaKey.getAlgorithm() in signDigestWithPrivateKey()
136 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() argument
139 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()
102 signature.initSign(javaKey); in signDigestWithPrivateKey()
128 "Exception while signing message with " + javaKey.getAlgorithm() in signDigestWithPrivateKey()
135 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() argument
138 return rsaOpWithPrivateKey(javaKey, openSSLPadding, Cipher.ENCRYPT_MODE, message); in rsaSignDigestWithPrivateKey()
[all …]
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java464 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() argument
483 if (!superClass.isInstance(javaKey)) { in wrapRsaKey()
489 + javaKey.getClass().getCanonicalName()); in wrapRsaKey()
502 opensslKey = getKey.invoke(javaKey); in wrapRsaKey()
508 Log.e(TAG, "Could not getOpenSSLKey on instance: " + javaKey.toString()); in wrapRsaKey()
541 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.java351 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DPlatform.java350 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc1277 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getRSAPrivateKeyWrapper() argument
1280 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes); in NativeCrypto_getRSAPrivateKeyWrapper()
1303 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getRSAPrivateKeyWrapper()
1322 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p) => %p", javaKey, modulusBytes, pkey.get()); in NativeCrypto_getRSAPrivateKeyWrapper()
1326 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getECPrivateKeyWrapper() argument
1330 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1344 JNI_TRACE("getECPrivateKeyWrapper(%p, %p) => EC_KEY_set_group error", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1350 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getECPrivateKeyWrapper()