aboutsummaryrefslogtreecommitdiffstats
path: root/OpenPGP-Keychain
diff options
context:
space:
mode:
Diffstat (limited to 'OpenPGP-Keychain')
-rw-r--r--OpenPGP-Keychain/libs/sc-bzip2-1.47.0.3-SNAPSHOT.jar (renamed from OpenPGP-Keychain/libs/sc-bzip2-1.47.0.2.jar)bin26285 -> 26304 bytes
-rw-r--r--OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.3-SNAPSHOT.jar (renamed from OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.2.jar)bin1482715 -> 1482732 bytes
-rw-r--r--OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.3-SNAPSHOT.jar (renamed from OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.2.jar)bin278984 -> 279076 bytes
-rw-r--r--OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.3-SNAPSHOT.jar (renamed from OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.2.jar)bin987827 -> 987884 bytes
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/PgpHelper.java13
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/KeychainIntentService.java6
-rw-r--r--OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java7
7 files changed, 4 insertions, 22 deletions
diff --git a/OpenPGP-Keychain/libs/sc-bzip2-1.47.0.2.jar b/OpenPGP-Keychain/libs/sc-bzip2-1.47.0.3-SNAPSHOT.jar
index 3bc42f30e..7eca57732 100644
--- a/OpenPGP-Keychain/libs/sc-bzip2-1.47.0.2.jar
+++ b/OpenPGP-Keychain/libs/sc-bzip2-1.47.0.3-SNAPSHOT.jar
Binary files differ
diff --git a/OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.2.jar b/OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.3-SNAPSHOT.jar
index 7cdbf856e..cd745e171 100644
--- a/OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.2.jar
+++ b/OpenPGP-Keychain/libs/sc-light-jdk15on-1.47.0.3-SNAPSHOT.jar
Binary files differ
diff --git a/OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.2.jar b/OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.3-SNAPSHOT.jar
index f290334d8..55c28d5b7 100644
--- a/OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.2.jar
+++ b/OpenPGP-Keychain/libs/scpg-jdk15on-1.47.0.3-SNAPSHOT.jar
Binary files differ
diff --git a/OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.2.jar b/OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.3-SNAPSHOT.jar
index 221a36b29..6f3433dca 100644
--- a/OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.2.jar
+++ b/OpenPGP-Keychain/libs/scprov-jdk15on-1.47.0.3-SNAPSHOT.jar
Binary files differ
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/PgpHelper.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/PgpHelper.java
index 810f3a6f2..60450ffb8 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/PgpHelper.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/PgpHelper.java
@@ -480,18 +480,7 @@ public class PgpHelper {
}
public static boolean isSecretKeyPrivateEmpty(PGPSecretKey secretKey) {
- try {
- PBESecretKeyDecryptor keyDecryptor = new JcePBESecretKeyDecryptorBuilder()
- .setProvider(PgpMain.BOUNCY_CASTLE_PROVIDER_NAME).build(new char[] {});
- PGPPrivateKey testKey = secretKey.extractPrivateKey(
- keyDecryptor);
- if (testKey != null) {
- return false;
- }
- } catch (PGPException e) { //exception if wrong key => not empty
- return false; //all good if this fails, we likely didn't use the right password
- }
- return true;
+ return secretKey.isPrivateKeyEmpty();
}
public static boolean isSecretKeyPrivateEmpty(Context context, long keyId) {
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/KeychainIntentService.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/KeychainIntentService.java
index 48afdff5c..1d48278eb 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/KeychainIntentService.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/KeychainIntentService.java
@@ -540,9 +540,9 @@ public class KeychainIntentService extends IntentService implements ProgressDial
long masterKeyId = data.getLong(SAVE_KEYRING_MASTER_KEY_ID);
/* Operation */
- if (!canSign) { //library fails, fix later
- //PgpMain.changeSecretKeyPassphrase(this, ProviderHelper.getPGPSecretKeyRingByKeyId(this, masterKeyId),
- //oldPassPhrase, newPassPhrase, this);
+ if (!canSign) {
+ PgpMain.changeSecretKeyPassphrase(this, ProviderHelper.getPGPSecretKeyRingByKeyId(this, masterKeyId),
+ oldPassPhrase, newPassPhrase, this);
} else {
PgpMain.buildSecretKey(this, userIds, keys, keysUsages, masterKeyId, oldPassPhrase,
newPassPhrase, this);
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java
index 3d819a824..bc4467967 100644
--- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java
+++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java
@@ -194,13 +194,6 @@ public class EditKeyActivity extends SherlockFragmentActivity {
}
});
- //disable key passhphrase changing with empty private keys for no
- //library fails, fix later
- if (!masterCanSign) {
- mChangePassPhrase.setEnabled(false);
- mNoPassphrase.setEnabled(false);
- }
-
if (mBuildLayout) {
buildLayout();
}