blob: 0a2a15184695d25a91f6511c2ab8b5a4c1ef2e66 (
plain)
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
|
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Setting default ECDSA size in ssh-keygen to 521.
diff -Naurp openssh.orig/ssh-keygen.1 openssh/ssh-keygen.1
--- openssh.orig/ssh-keygen.1
+++ openssh/ssh-keygen.1
@@ -277,7 +277,7 @@ For ECDSA keys, the
flag determines the key length by selecting from one of three elliptic
curve sizes: 256, 384 or 521 bits.
Attempting to use bit lengths other than these three values for ECDSA keys
-will fail.
+will fail and the default is 521 bits.
ECDSA-SK, Ed25519 and Ed25519-SK keys have a fixed length and the
.Fl b
flag will be ignored.
diff -Naurp openssh.orig/ssh-keygen.c openssh/ssh-keygen.c
--- openssh.orig/ssh-keygen.c
+++ openssh/ssh-keygen.c
@@ -81,7 +81,7 @@
*/
#define DEFAULT_BITS 4096
#define DEFAULT_BITS_DSA 1024
-#define DEFAULT_BITS_ECDSA 256
+#define DEFAULT_BITS_ECDSA 521
static int quiet = 0;
|