Searched refs:javaKey (Results 1 – 6 of 6) sorted by relevance
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | CryptoUpcalls.java | 60 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/ |
D | CryptoUpcalls.java | 59 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/ |
D | Platform.java | 466 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() argument 485 if (!superClass.isInstance(javaKey)) { in wrapRsaKey() 491 + javaKey.getClass().getCanonicalName()); in wrapRsaKey() 504 opensslKey = getKey.invoke(javaKey); in wrapRsaKey() 510 Log.e(TAG, "Could not getOpenSSLKey on instance: " + javaKey.toString()); in wrapRsaKey() 543 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/ |
D | Platform.java | 351 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
|
/external/conscrypt/openjdk/src/main/java/org/conscrypt/ |
D | Platform.java | 350 static OpenSSLKey wrapRsaKey(@SuppressWarnings("unused") PrivateKey javaKey) { in wrapRsaKey() argument
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 1266 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getRSAPrivateKeyWrapper() argument 1269 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes); in NativeCrypto_getRSAPrivateKeyWrapper() 1292 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getRSAPrivateKeyWrapper() 1311 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p) => %p", javaKey, modulusBytes, pkey.get()); in NativeCrypto_getRSAPrivateKeyWrapper() 1315 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getECPrivateKeyWrapper() argument 1319 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper() 1333 JNI_TRACE("getECPrivateKeyWrapper(%p, %p) => EC_KEY_set_group error", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper() 1339 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getECPrivateKeyWrapper()
|