AIFeed

OpenSSH:"将默认生成的密钥类型切换为 ECDSA NISTP384"

Translation(model translation, not the source's own text)

‎ssh-keygen.c‎

题图
题图
原文件行号差异行号差异行数
@@ -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 <[email protected]>
44* Copyright (c) 1994 Tatu Ylonen <[email protected]>, 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

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗