Original text(via Hacker News)
Makefile.in 题图 Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \ 102 102 smult_curve25519_ref.o \ 103 103 poly1305.o chacha.o cipher-chachapoly.o cipher-chachapoly-libcrypto.o \ 104 104 ssh-ed25519.o digest-openssl.o digest-libc.o \ 105 - libcrux-mlkem-mldsa.o ssh-mldsa-eddsa.o \ 105 + libcrux-mlkem-mldsa.o ssh-mldsa-eddsa.o ssh-mldsa-ecdsa.o \ 106 106 hmac.o ed25519.o ed25519-openssl.o \ 107 107 kex.o kex-names.o kexdh.o kexgex.o kexecdh.o kexc25519.o \ 108 108 kexgexc.o kexgexs.o kexmlkem768ecdh.o \
authfd.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: authfd.c,v 1. 144 2026/ 06/29 08:57:06 djm Exp $ / 1 + / $OpenBSD: authfd.c,v 1. 145 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Author: Tatu Ylonen <[email protected] > 4 4 * Copyright (c) 1995 Tatu Ylonen <[email protected] >, Espoo, Finland @@ -610,6 +610,8 @@ ssh_add_identity_constrained(int sock, struct sshkey *key, 610 610 case KEY_ED25519_CERT : 611 611 case KEY_MLDSA44_ED25519 : 612 612 case KEY_MLDSA44_ED25519_CERT : 613 + case KEY_MLDSA87_P384 : 614 + case KEY_MLDSA87_P384_CERT : 613 615 case KEY_ED25519_SK : 614 616 case KEY_ED25519_SK_CERT : 615 617 type = constrained ?
authfile.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: authfile.c,v 1. 152 2026/ 07/07 04:04:16 djm Exp $ / 1 + / $OpenBSD: authfile.c,v 1. 153 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Copyright (c) 2000, 2013 Markus Friedl. All rights reserved. 4 4 * @@ -328,6 +328,7 @@ sshkey_load_private_cert(int type, const char filename, const char passphrase, 328 328 #endif / WITH_OPENSSL / 329 329 case KEY_ED25519 : 330 330 case KEY_MLDSA44_ED25519 : 331 + case KEY_MLDSA87_P384 : 331 332 case KEY_UNSPEC : 332 333 break ; 333 334 default :
libcrux-mlkem-mldsa.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: libcrux-mlkem-mldsa.c,v 1. 1 2026/ 06/14 03:59:34 djm Exp $ / 1 + / $OpenBSD: libcrux-mlkem-mldsa.c,v 1. 2 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Copyright (c) 2026 Damien Miller <[email protected] > 4 4 * @@ -316,7 +316,6 @@ crypto_sign_mldsa65_verify(const uint8_t sig[MLDSA65_SIGBYTES], 316 316 317 317 / ML-DSA 87 / 318 318 319 - #if 0 320 319 int 321 320 crypto_sign_mldsa87_keypair ( uint8_t pk [ MLDSA87_PUBLICKEYBYTES ], 322 321 uint8_t sk [ MLDSA87_SECRETKEYBYTES ]) @@ -410,7 +409,6 @@ crypto_sign_mldsa87_verify(const uint8_t sig[MLDSA87_SIGBYTES], 410 409 411 410 return ( res . tag == LIBCRUX_RESULT_OK ) ? 0 : -1 ; 412 411 } 413 - #endif 414 412 415 413 void 416 414 sha3_256 ( uint8_t digest [ 32 ], const uint8_t * data , size_t len )
pathnames.h Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: pathnames.h,v 1. 38 2026/ 09/16 00: 25:50 djm Exp $ / 1 + / $OpenBSD: pathnames.h,v 1. 39 2026/ 12/05 00: 42:45 djm Exp $ / 2 2 3 3 /* 4 4 * Author: Tatu Ylonen <[email protected] > @@ -40,6 +40,7 @@ 40 40 #define _PATH_HOST_RSA_KEY_FILE SSHDIR "/ssh_host_rsa_key" 41 41 #define _PATH_HOST_ED25519_KEY_FILE SSHDIR "/ssh_host_ed25519_key" 42 42 #define _PATH_HOST_MLDSA44_ED25519_KEY_FILE SSHDIR "/ssh_host_mldsa44_ed25519_key" 43 + #define _PATH_HOST_MLDSA87_P384_KEY_FILE SSHDIR "/ssh_host_mldsa87_p384_key" 43 44 #define _PATH_DH_MODULI SSHDIR "/moduli" 44 45 45 46 #ifndef _PATH_SSH_PROGRAM @@ -95,6 +96,7 @@ 95 96 #define _PATH_SSH_CLIENT_ID_ECDSA_SK _PATH_SSH_USER_DIR "/id_ecdsa_sk" 96 97 #define _PATH_SSH_CLIENT_ID_ED25519_SK _PATH_SSH_USER_DIR "/id_ed25519_sk" 97 98 #define _PATH_SSH_CLIENT_ID_MLDSA44_ED25519 _PATH_SSH_USER_DIR "/id_mldsa44_ed25519" 99 + #define _PATH_SSH_CLIENT_ID_MLDSA87_P384 _PATH_SSH_USER_DIR "/id_mldsa87_p384" 98 100 99 101 /* 100 102 * Configuration file in user's home directory. This file need not be
readconf.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: readconf.c,v 1. 427 2026/12/ 01 10:14:02 djm Exp $ / 1 + / $OpenBSD: readconf.c,v 1. 428 2026/12/ 05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Author: Tatu Ylonen <[email protected] > 4 4 * Copyright (c) 1995 Tatu Ylonen <[email protected] >, Espoo, Finland @@ -2994,6 +2994,8 @@ fill_default_options(Options * options) 2994 2994 _PATH_SSH_CLIENT_ID_ED25519_SK , 0 ); 2995 2995 add_identity_file ( options , "~/" , 2996 2996 _PATH_SSH_CLIENT_ID_MLDSA44_ED25519 , 0 ); 2997 + add_identity_file ( options , "~/" , 2998 + _PATH_SSH_CLIENT_ID_MLDSA87_P384 , 0 ); 2997 2999 } 2998 3000 if ( options -> escape_char == -1 ) 2999 3001 options -> escape_char = '~' ;
servconf.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: servconf.c,v 1. 463 2026/ 11/29 10:26:05 djm Exp $ / 1 + / $OpenBSD: servconf.c,v 1. 464 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Copyright (c) 1995 Tatu Ylonen <[email protected] >, Espoo, Finland 4 4 * All rights reserved @@ -334,6 +334,8 @@ fill_default_server_options(ServerOptions *options) 334 334 _PATH_HOST_ED25519_KEY_FILE , 0 ); 335 335 servconf_add_hostkey ( "[default]" , 0 , options , 336 336 _PATH_HOST_MLDSA44_ED25519_KEY_FILE , 0 ); 337 + servconf_add_hostkey ( "[default]" , 0 , options , 338 + _PATH_HOST_MLDSA87_P384_KEY_FILE , 0 ); 337 339 } 338 340 / No certificates by default / 339 341 if ( options -> num_ports == 0 )
ssh-add.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: ssh-add.c,v 1. 192 2026/ 10/29 22:53:23 djm Exp $ / 1 + / $OpenBSD: ssh-add.c,v 1. 193 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Author: Tatu Ylonen <[email protected] > 4 4 * Copyright (c) 1995 Tatu Ylonen <[email protected] >, Espoo, Finland @@ -86,6 +86,9 @@ static char *default_files[] = { 86 86 _PATH_SSH_CLIENT_ID_ED25519 , 87 87 _PATH_SSH_CLIENT_ID_ED25519_SK , 88 88 _PATH_SSH_CLIENT_ID_MLDSA44_ED25519 , 89 + #ifdef WITH_OPENSSL 90 + _PATH_SSH_CLIENT_ID_MLDSA87_P384 , 91 + #endif / WITH_OPENSSL / 89 92 NULL 90 93 }; 91 94
ssh-keygen.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: ssh-keygen.c,v 1. 513 2026/12/ 03 08:40:32 djm Exp $ / 1 + / $OpenBSD: ssh-keygen.c,v 1. 514 2026/12/ 05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Author: Tatu Ylonen <[email protected] > 4 4 * Copyright (c) 1994 Tatu Ylonen <[email protected] >, Espoo, Finland @@ -273,6 +273,10 @@ ask_filename(struct passwd pw, const char prompt) 273 273 case KEY_MLDSA44_ED25519_CERT : 274 274 name = _PATH_SSH_CLIENT_ID_MLDSA44_ED25519 ; 275 275 break ; 276 + case KEY_MLDSA87_P384 : 277 + case KEY_MLDSA87_P384_CERT : 278 + name = _PATH_SSH_CLIENT_ID_MLDSA87_P384 ; 279 + break ; 276 280 default : 277 281 fatal ( "bad key type" ); 278 282 } @@ -1051,6 +1055,10 @@ do_gen_all_hostkeys(struct passwd *pw) 1051 1055 #ifdef USE_MLDSA 1052 1056 { "mldsa44-ed25519" , "MLDSA44-ED25519" , 1053 1057 _PATH_HOST_MLDSA44_ED25519_KEY_FILE }, 1058 + # ifdef WITH_OPENSSL 1059 + { "mldsa87-p384" , "MLDSA87-P384" , 1060 + _PATH_HOST_MLDSA87_P384_KEY_FILE }, 1061 + # endif / WITH_OPENSSL / 1054 1062 #endif 1055 1063 { NULL , NULL , NULL } 1056 1064 }; @@ -3444,8 +3452,8 @@ usage(void) 3444 3452 fprintf ( stderr ,
ssh-keyscan.c Original file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1 - / $OpenBSD: ssh-keyscan.c,v 1. 177 2026/ 11/30 10:40:35 dtucker Exp $ / 1 + / $OpenBSD: ssh-keyscan.c,v 1. 178 2026/ 12/05 00:42:45 djm Exp $ / 2 2 /* 3 3 * Copyright 1995, 1996 by David Mazieres <[email protected] >. 4 4 * @@ -66,12 +66,13 @@ int ssh_port = SSH_DEFAULT_PORT; 66 66 #define KT_ECDSA_SK (1<<4) 67 67 #define KT_ED25519_SK (1<<5) 68 68 #define KT_MLDSA44_ED25519 (1<<6) 69 + #define KT_MLDSA87_P384 (1<<7) 69 70 70 71 #define KT_MIN KT_RSA 71 - #define KT_MAX KT_MLDSA44_ED25519 72 + #define KT_MAX KT_MLDSA87_P384 72 73 73 74 int get_cert = 0 ; 74 - int get_keytypes = KT_RSA │ KT_ECDSA │ KT_ED25519 │ KT_ECDSA_SK │ KT_ED25519_SK │ KT_MLDSA44_ED25519 ; 75 + int get_keytypes = KT_RSA │ KT_ECDSA │ KT_ED25519 │ KT_ECDSA_SK │ KT_ED25519_SK │ KT_MLDSA44_ED25519 │ KT_MLDSA87_P384 ; 75 76 76 77 int hash_hosts = 0 ; / Hash hostname on output / 77 78 @@ -268,6 +269,11 @@ keygrab_ssh2(con *c) 268 269 "ssh-mldsa44-ed25519-cert" : 269 270 "ssh-mldsa44-ed25519" ; 270 271 break ; 272 + case KT_MLDSA87_P384 : 273 + myproposal [ PROPOSAL_SERVER_HOST_KEY_ALGS ] = get_cert ? 274 + "ssh-mldsa87-p384-cert" : 275 + "ssh-mldsa87-p384" ;
The text above was extracted automatically from the source page and may miss images, tables or code blocks. 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 ↗