From 19cab919afd26c14d4df214f51ae05c49432e1d1 Mon Sep 17 00:00:00 2001 From: gogowitczak Date: Tue, 8 Apr 2014 23:59:41 +0200 Subject: Modified Spinner values for CreateKeyDialog. Added info for user about custom key length restrictions. --- OpenKeychain/src/main/res/layout/create_key_dialog.xml | 7 +++++++ OpenKeychain/src/main/res/values/arrays.xml | 17 ++++++++++++++--- OpenKeychain/src/main/res/values/strings.xml | 7 ++++++- 3 files changed, 27 insertions(+), 4 deletions(-) (limited to 'OpenKeychain/src/main/res') diff --git a/OpenKeychain/src/main/res/layout/create_key_dialog.xml b/OpenKeychain/src/main/res/layout/create_key_dialog.xml index da884ceb5..16eef08c4 100644 --- a/OpenKeychain/src/main/res/layout/create_key_dialog.xml +++ b/OpenKeychain/src/main/res/layout/create_key_dialog.xml @@ -74,6 +74,13 @@ android:inputType="number" android:visibility="gone"/> + + \ No newline at end of file diff --git a/OpenKeychain/src/main/res/values/arrays.xml b/OpenKeychain/src/main/res/values/arrays.xml index b16973f90..4173d49e4 100644 --- a/OpenKeychain/src/main/res/values/arrays.xml +++ b/OpenKeychain/src/main/res/values/arrays.xml @@ -29,12 +29,23 @@ 28800 -1 - - @string/key_size_512 - @string/key_size_1024 + + @string/key_size_2048 + @string/key_size_4096 + @string/key_size_8192 + @string/key_size_custom + + + @string/key_size_1536 @string/key_size_2048 + @string/key_size_3072 @string/key_size_4096 @string/key_size_8192 + + + @string/key_size_512 + @string/key_size_768 + @string/key_size_1024 @string/key_size_custom diff --git a/OpenKeychain/src/main/res/values/strings.xml b/OpenKeychain/src/main/res/values/strings.xml index c1d62fd52..d0959f255 100644 --- a/OpenKeychain/src/main/res/values/strings.xml +++ b/OpenKeychain/src/main/res/values/strings.xml @@ -249,7 +249,7 @@ Successfully exported 1 key. Successfully exported %d keys. No keys exported. - Note: only subkeys support ElGamal, and for ElGamal the nearest keysize of 1536, 2048, 3072, 4096, or 8192 will be used. + Note: only subkeys support ElGamal. Note: generating RSA key with length 1024-bit and less is considered unsafe and it\'s disabled for generating new keys. Couldn\'t find key %08X. @@ -375,12 +375,17 @@ 512 + 768 1024 + 1536 2048 + 3072 4096 8192 Custom key size Type custom key length (in bits): + RSA key length must be greater than 1024 and at most 8192. Also it must be multiplicity of 8. + DSA key length must be at least 512 and at most 1024. Also it must be multiplicity of 64. fast -- cgit v1.2.3