aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main
diff options
context:
space:
mode:
authorDominik Schürmann <dominik@dominikschuermann.de>2014-08-05 22:38:36 +0200
committerDominik Schürmann <dominik@dominikschuermann.de>2014-08-05 22:38:36 +0200
commit6354b2dcf9d73f4931dcbc8c5ab3e89693b65ac3 (patch)
treee24a2e9971d76516a243a240ca25d5998b8ae3f7 /OpenKeychain/src/main
parent1455af2eed0f5efa2bc3b3317334796516670970 (diff)
downloadopen-keychain-6354b2dcf9d73f4931dcbc8c5ab3e89693b65ac3.tar.gz
open-keychain-6354b2dcf9d73f4931dcbc8c5ab3e89693b65ac3.tar.bz2
open-keychain-6354b2dcf9d73f4931dcbc8c5ab3e89693b65ac3.zip
Increase maximum custom RSA size
Diffstat (limited to 'OpenKeychain/src/main')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddSubkeyDialogFragment.java2
-rw-r--r--OpenKeychain/src/main/res/values/strings.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddSubkeyDialogFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddSubkeyDialogFragment.java
index 27c797a7d..9841deeab 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddSubkeyDialogFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddSubkeyDialogFragment.java
@@ -297,7 +297,7 @@ public class AddSubkeyDialogFragment extends DialogFragment {
int properKeyLength = -1;
switch (algorithmId) {
case PublicKeyAlgorithmTags.RSA_GENERAL:
- if (currentKeyLength > 1024 && currentKeyLength <= 8192) {
+ if (currentKeyLength > 1024 && currentKeyLength <= 16384) {
properKeyLength = currentKeyLength + ((8 - (currentKeyLength % 8)) % 8);
}
break;
diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml
index 58d3832f7..3debd9083 100644
--- a/OpenKeychain/src/main/res/values/strings.xml
+++ b/OpenKeychain/src/main/res/values/strings.xml
@@ -317,7 +317,7 @@
<string name="key_size_8192">8192</string>
<string name="key_size_custom">Custom key size</string>
<string name="key_size_custom_info">Type custom key length (in bits):</string>
- <string name="key_size_custom_info_rsa">RSA key length must be greater than 1024 and at most 8192. Also it must be multiplicity of 8.</string>
+ <string name="key_size_custom_info_rsa">RSA key length must be greater than 1024 and at most 16384. Also it must be multiplicity of 8.</string>
<string name="key_size_custom_info_dsa">DSA key length must be at least 512 and at most 1024. Also it must be multiplicity of 64.</string>
<!-- compression -->