diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:52:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:52:30 +0000 |
commit | f1f662d9b52d98f4fd6793083e839bf66e40a297 (patch) | |
tree | a47891d37abe03630cc8ad9f85a91f4eb161c834 /debian/patches | |
parent | Setting default RSA size in ssh-keygen to 4096. (diff) | |
download | openssh-f1f662d9b52d98f4fd6793083e839bf66e40a297.tar.xz openssh-f1f662d9b52d98f4fd6793083e839bf66e40a297.zip |
Setting default ECDSA size in ssh-keygen to 521.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/progress-linux/0002-ssh-keygen-default-ecdsa-size.patch | 27 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0002-ssh-keygen-default-ecdsa-size.patch b/debian/patches/progress-linux/0002-ssh-keygen-default-ecdsa-size.patch new file mode 100644 index 0000000..0a2a151 --- /dev/null +++ b/debian/patches/progress-linux/0002-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 +@@ -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; + diff --git a/debian/patches/series b/debian/patches/series index a400792..29f9ee1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -27,3 +27,4 @@ conch-ssh-rsa.patch systemd-socket-activation.patch broken-zero-call-used-regs.patch progress-linux/0001-ssh-keygen-default-rsa-size.patch +progress-linux/0002-ssh-keygen-default-ecdsa-size.patch |