summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:33:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:33:01 +0000
commit158bae35ff77f415fef448f45d21b1ae41fd685a (patch)
tree8960a1dcf0f4671fe1e60c3194a3a9bec1b70505
parentSetting default RSA size in ssh-keygen to 4096. (diff)
downloadopenssh-158bae35ff77f415fef448f45d21b1ae41fd685a.tar.xz
openssh-158bae35ff77f415fef448f45d21b1ae41fd685a.zip
Setting default ECDSA size in ssh-keygen to 521.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch27
-rw-r--r--debian/patches/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch b/debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch
new file mode 100644
index 0000000..ad0bf6d
--- /dev/null
+++ b/debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch
@@ -0,0 +1,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
+@@ -250,7 +250,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.
+ Ed25519 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
+@@ -66,7 +66,7 @@
+ /* Number of bits in the RSA/DSA key. This value can be set on the command line. */
+ #define DEFAULT_BITS 4096
+ #define DEFAULT_BITS_DSA 1024
+-#define DEFAULT_BITS_ECDSA 256
++#define DEFAULT_BITS_ECDSA 521
+ u_int32_t bits = 0;
+
+ /*
diff --git a/debian/patches/series b/debian/patches/series
index 10fb758..129c263 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -36,3 +36,4 @@ seccomp-handle-shm.patch
sandbox-seccomp-ipc.patch
progress-linux/0001-ssh-keygen-default-key-type.patch
progress-linux/0002-ssh-keygen-default-rsa-size.patch
+progress-linux/0003-ssh-keygen-default-ecdsa-size.patch