Back Original

OpenSSH: "switch default key type generated to ECDSA NISTP384"

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

/* $OpenBSD: ssh-keygen.c,v 1.512 2026/11/29 09:21:40 djm Exp $ */

1+

/* $OpenBSD: ssh-keygen.c,v 1.513 2026/12/03 08:40:32 djm Exp $ */

22

/*

33

* Author: Tatu Ylonen <ylo@cs.hut.fi>

44

* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland

@@ -67,7 +67,7 @@

6767

#include "ssh-pkcs11.h"

6868

#endif

6969
70-

#define DEFAULT_KEY_TYPE_NAME "ed25519"

70+

#define DEFAULT_KEY_TYPE_NAME "ecdsa"

7171
7272

/*

7373

* Default number of bits in the RSA and ECDSA keys. These value can be

@@ -78,7 +78,7 @@

7878

* Management Part 1 rev 4 section 5.6.1.

7979

*/

8080

#define DEFAULT_BITS 3072

81-

#define DEFAULT_BITS_ECDSA 256

81+

#define DEFAULT_BITS_ECDSA 384

8282
8383

#define KEY_COMMENT_MAX (NI_MAXHOST + 1024)

8484