File: Default-to-4096-bit-keys

package info (click to toggle)
pidgin-encryption 3.1-1.1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 2,984 kB
  • ctags: 1,020
  • sloc: sh: 10,460; ansic: 8,821; makefile: 376; yacc: 318
file content (39 lines) | stat: -rw-r--r-- 1,936 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Default to 4096 bits when creating new keys
 The previous, 1024 bit default key size is not considered to be safe
 anymore thus whw should not offer it as default.
 .
Author: Balint Reczey <balint@balintreczey.hu>
Bug-Debian: https://bugs.debian.org/766700
Forwarded: no

--- pidgin-encryption-3.1.orig/config_ui.c
+++ pidgin-encryption-3.1/config_ui.c
@@ -227,7 +227,7 @@ static void config_regen_key(GtkWidget*
 
    key_size_entry = gtk_entry_new();
    gtk_entry_set_max_length(GTK_ENTRY(key_size_entry), 5);
-   gtk_entry_set_text(GTK_ENTRY(key_size_entry), "1024");
+   gtk_entry_set_text(GTK_ENTRY(key_size_entry), "4096");
    gtk_table_attach(GTK_TABLE(table), key_size_entry, 1, 2, 1, 2,
                     0, 0, 0, 0);
    gtk_widget_set_size_request(key_size_entry, 85, -1);
--- pidgin-encryption-3.1.orig/keys.c
+++ pidgin-encryption-3.1/keys.c
@@ -99,7 +99,7 @@ crypt_key * PE_find_own_key_by_name(key_
                               PURPLE_MESSAGE_SYSTEM, time((time_t)NULL));
    }
    
-   PE_make_private_pair((crypt_proto *)crypt_proto_list->data, name, conv->account, 1024);
+   PE_make_private_pair((crypt_proto *)crypt_proto_list->data, name, conv->account, 4096);
    
    key = PE_find_key_by_name(*ring, name, conv->account);
    if (key) return key;
@@ -856,7 +856,7 @@ void PE_key_rings_init() {
          proto_node = crypt_proto_list;
          /* make a pair using the first protocol that comes to mind. */
          /* user can override using the config tool */
-         PE_make_private_pair((crypt_proto *)proto_node->data, name, (PurpleAccount*)(cur_sn->data), 1024);
+         PE_make_private_pair((crypt_proto *)proto_node->data, name, (PurpleAccount*)(cur_sn->data), 4096);
       } else {  /* There is a private key  */
          if (pub_key == NULL) { /* but no public key */
             purple_debug(PURPLE_DEBUG_ERROR, "pidgin-encryption", "No public key found for %s\n", name);