Kaynağa Gözat

Support 4096 bit RSA keys.

* src/agent.c (MAX_SIGNATURE_{BITS,LEN}): Tweak values.

Signed-off-by: Justus Winter <justus@g10code.com>
Justus Winter 9 yıl önce
ebeveyn
işleme
7346eab3ac
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4 4
      src/agent.c

+ 4 - 4
src/agent.c

@@ -952,11 +952,11 @@ scute_agent_check_status (void)
 }
 
 
-/* We only support RSA signatures up to 2048 bits.  */
-#define MAX_SIGNATURE_BITS 2048
+/* We only support RSA signatures up to 4096 bits.  */
+#define MAX_SIGNATURE_BITS 4096
 
-/* Enough space to hold a 2048 bit RSA signature in an S-expression.  */
-#define MAX_SIGNATURE_LEN 350
+/* Enough space to hold a 4096 bit RSA signature in an S-expression.  */
+#define MAX_SIGNATURE_LEN 640	/* FIXME: magic value */
 
 struct signature
 {