mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-26 00:48:51 -05:00
Increase maximum custom RSA size
This commit is contained in:
parent
1455af2eed
commit
6354b2dcf9
@ -297,7 +297,7 @@ public class AddSubkeyDialogFragment extends DialogFragment {
|
|||||||
int properKeyLength = -1;
|
int properKeyLength = -1;
|
||||||
switch (algorithmId) {
|
switch (algorithmId) {
|
||||||
case PublicKeyAlgorithmTags.RSA_GENERAL:
|
case PublicKeyAlgorithmTags.RSA_GENERAL:
|
||||||
if (currentKeyLength > 1024 && currentKeyLength <= 8192) {
|
if (currentKeyLength > 1024 && currentKeyLength <= 16384) {
|
||||||
properKeyLength = currentKeyLength + ((8 - (currentKeyLength % 8)) % 8);
|
properKeyLength = currentKeyLength + ((8 - (currentKeyLength % 8)) % 8);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -317,7 +317,7 @@
|
|||||||
<string name="key_size_8192">8192</string>
|
<string name="key_size_8192">8192</string>
|
||||||
<string name="key_size_custom">Custom key size</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">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>
|
<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 -->
|
<!-- compression -->
|
||||||
|
Loading…
Reference in New Issue
Block a user