From 86475089aa5b6ea7981328e047087544c08ba7da Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:08:25 +0200 Subject: Setting default ECDSA size in ssh-keygen to 521. Signed-off-by: Daniel Baumann --- .../0003-ssh-keygen-default-ecdsa-size.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch (limited to 'debian/patches/progress-linux') 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..0a2a151 --- /dev/null +++ b/debian/patches/progress-linux/0003-ssh-keygen-default-ecdsa-size.patch @@ -0,0 +1,27 @@ +Author: Daniel Baumann +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; + -- cgit v1.2.3