summaryrefslogtreecommitdiffstats
path: root/net/android/keystore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/android/keystore.cc')
-rw-r--r--net/android/keystore.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/net/android/keystore.cc b/net/android/keystore.cc
index dd37939..4fa8dbf 100644
--- a/net/android/keystore.cc
+++ b/net/android/keystore.cc
@@ -36,21 +36,6 @@ bool GetRSAKeyModulus(jobject private_key_ref, std::vector<uint8_t>* result) {
return true;
}
-bool GetDSAKeyParamQ(jobject private_key_ref, std::vector<uint8_t>* result) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jbyteArray> q_ref =
- Java_AndroidKeyStore_getDSAKeyParamQ(
- env,
- GetKeyStore(private_key_ref).obj(),
- private_key_ref);
- if (q_ref.is_null())
- return false;
-
- JavaByteArrayToByteVector(env, q_ref.obj(), result);
- return true;
-}
-
bool GetECKeyOrder(jobject private_key_ref, std::vector<uint8_t>* result) {
JNIEnv* env = AttachCurrentThread();
@@ -67,22 +52,6 @@ bool GetECKeyOrder(jobject private_key_ref, std::vector<uint8_t>* result) {
return true;
}
-bool GetPrivateKeyEncodedBytes(jobject private_key_ref,
- std::vector<uint8_t>* result) {
- JNIEnv* env = AttachCurrentThread();
-
- ScopedJavaLocalRef<jbyteArray> encoded_ref =
- Java_AndroidKeyStore_getPrivateKeyEncodedBytes(
- env,
- GetKeyStore(private_key_ref).obj(),
- private_key_ref);
- if (encoded_ref.is_null())
- return false;
-
- JavaByteArrayToByteVector(env, encoded_ref.obj(), result);
- return true;
-}
-
bool RawSignDigestWithPrivateKey(jobject private_key_ref,
const base::StringPiece& digest,
std::vector<uint8_t>* signature) {