Home
last modified time | relevance | path

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

/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DCryptoUpcalls.java62 static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in ecSignDigestWithPrivateKey() argument
65 String keyAlgorithm = javaKey.getAlgorithm(); in ecSignDigestWithPrivateKey()
67 throw new RuntimeException("Unexpected key type: " + javaKey); in ecSignDigestWithPrivateKey()
70 return signDigestWithPrivateKey(javaKey, message, "NONEwithECDSA"); in ecSignDigestWithPrivateKey()
73 private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, in signDigestWithPrivateKey() argument
82 signature.initSign(javaKey); in signDigestWithPrivateKey()
105 signature.initSign(javaKey); in signDigestWithPrivateKey()
131 "Exception while signing message with " + javaKey.getAlgorithm() in signDigestWithPrivateKey()
138 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() argument
141 return rsaOpWithPrivateKey(javaKey, openSSLPadding, Cipher.ENCRYPT_MODE, message); in rsaSignDigestWithPrivateKey()
[all …]
/external/conscrypt/common/src/main/java/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); 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/jni/main/cpp/conscrypt/
Dnative_crypto.cc1327 static jlong NativeCrypto_getRSAPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getRSAPrivateKeyWrapper() argument
1330 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p)", javaKey, modulusBytes); in NativeCrypto_getRSAPrivateKeyWrapper()
1363 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getRSAPrivateKeyWrapper()
1381 JNI_TRACE("getRSAPrivateKeyWrapper(%p, %p) => %p", javaKey, modulusBytes, pkey.get()); in NativeCrypto_getRSAPrivateKeyWrapper()
1385 static jlong NativeCrypto_getECPrivateKeyWrapper(JNIEnv* env, jclass, jobject javaKey, in NativeCrypto_getECPrivateKeyWrapper() argument
1389 JNI_TRACE("getECPrivateKeyWrapper(%p, %p)", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1403 JNI_TRACE("getECPrivateKeyWrapper(%p, %p) => EC_KEY_set_group error", javaKey, group); in NativeCrypto_getECPrivateKeyWrapper()
1409 ex_data->private_key = env->NewGlobalRef(javaKey); in NativeCrypto_getECPrivateKeyWrapper()