Increase maximum custom RSA size

This commit is contained in:
Dominik Schürmann
2014-08-05 22:38:36 +02:00
parent 1455af2eed
commit 6354b2dcf9
2 changed files with 2 additions and 2 deletions

View File

@@ -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;