AIFeed

OpenSSH adds support for composite ML-DSA 87 / ECDSA p384

Original text(via Hacker News)

‎Makefile.in‎

题图
题图
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
102102smult_curve25519_ref.o \
103103poly1305.o chacha.o cipher-chachapoly.o cipher-chachapoly-libcrypto.o \
104104ssh-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 \
106106hmac.o ed25519.o ed25519-openssl.o \
107107kex.o kex-names.o kexdh.o kexgex.o kexecdh.o kexc25519.o \
108108kexgexc.o kexgexs.o kexmlkem768ecdh.o \

‎authfd.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Author: Tatu Ylonen <[email protected]>
44* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -610,6 +610,8 @@ ssh_add_identity_constrained(int sock, struct sshkey *key,
610610case KEY_ED25519_CERT :
611611case KEY_MLDSA44_ED25519 :
612612case KEY_MLDSA44_ED25519_CERT :
613+ case KEY_MLDSA87_P384 :
614+ case KEY_MLDSA87_P384_CERT :
613615case KEY_ED25519_SK :
614616case KEY_ED25519_SK_CERT :
615617type = constrained ?

‎authfile.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Copyright (c) 2000, 2013 Markus Friedl. All rights reserved.
44*
@@ -328,6 +328,7 @@ sshkey_load_private_cert(int type, const char filename, const char passphrase,
328328#endif / WITH_OPENSSL /
329329case KEY_ED25519 :
330330case KEY_MLDSA44_ED25519 :
331+ case KEY_MLDSA87_P384 :
331332case KEY_UNSPEC :
332333break ;
333334default :

‎libcrux-mlkem-mldsa.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Copyright (c) 2026 Damien Miller <[email protected]>
44*
@@ -316,7 +316,6 @@ crypto_sign_mldsa65_verify(const uint8_t sig[MLDSA65_SIGBYTES],
316316
317317/ ML-DSA 87 /
318318
319- #if 0
320319int
321320crypto_sign_mldsa87_keypair ( uint8_t pk [ MLDSA87_PUBLICKEYBYTES ],
322321uint8_t sk [ MLDSA87_SECRETKEYBYTES ])
@@ -410,7 +409,6 @@ crypto_sign_mldsa87_verify(const uint8_t sig[MLDSA87_SIGBYTES],
410409
411410return ( res . tag == LIBCRUX_RESULT_OK ) ? 0 : -1 ;
412411}
413- #endif
414412
415413void
416414sha3_256 ( uint8_t digest [ 32 ], const uint8_t * data , size_t len )

‎pathnames.h‎

Original file line numberDiff line numberDiff 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 $ /
22
33/*
44* Author: Tatu Ylonen <[email protected]>
@@ -40,6 +40,7 @@
4040#define _PATH_HOST_RSA_KEY_FILE SSHDIR "/ssh_host_rsa_key"
4141#define _PATH_HOST_ED25519_KEY_FILE SSHDIR "/ssh_host_ed25519_key"
4242#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"
4344#define _PATH_DH_MODULI SSHDIR "/moduli"
4445
4546#ifndef _PATH_SSH_PROGRAM
@@ -95,6 +96,7 @@
9596#define _PATH_SSH_CLIENT_ID_ECDSA_SK _PATH_SSH_USER_DIR "/id_ecdsa_sk"
9697#define _PATH_SSH_CLIENT_ID_ED25519_SK _PATH_SSH_USER_DIR "/id_ed25519_sk"
9798#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"
98100
99101/*
100102* Configuration file in user's home directory. This file need not be

‎readconf.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Author: Tatu Ylonen <[email protected]>
44* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -2994,6 +2994,8 @@ fill_default_options(Options * options)
29942994_PATH_SSH_CLIENT_ID_ED25519_SK , 0 );
29952995add_identity_file ( options , "~/" ,
29962996_PATH_SSH_CLIENT_ID_MLDSA44_ED25519 , 0 );
2997+ add_identity_file ( options , "~/" ,
2998+ _PATH_SSH_CLIENT_ID_MLDSA87_P384 , 0 );
29972999}
29983000if ( options -> escape_char == -1 )
29993001options -> escape_char = '~' ;

‎servconf.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
44* All rights reserved
@@ -334,6 +334,8 @@ fill_default_server_options(ServerOptions *options)
334334_PATH_HOST_ED25519_KEY_FILE , 0 );
335335servconf_add_hostkey ( "[default]" , 0 , options ,
336336_PATH_HOST_MLDSA44_ED25519_KEY_FILE , 0 );
337+ servconf_add_hostkey ( "[default]" , 0 , options ,
338+ _PATH_HOST_MLDSA87_P384_KEY_FILE , 0 );
337339}
338340/ No certificates by default /
339341if ( options -> num_ports == 0 )

‎ssh-add.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Author: Tatu Ylonen <[email protected]>
44* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -86,6 +86,9 @@ static char *default_files[] = {
8686_PATH_SSH_CLIENT_ID_ED25519 ,
8787_PATH_SSH_CLIENT_ID_ED25519_SK ,
8888_PATH_SSH_CLIENT_ID_MLDSA44_ED25519 ,
89+ #ifdef WITH_OPENSSL
90+ _PATH_SSH_CLIENT_ID_MLDSA87_P384 ,
91+ #endif / WITH_OPENSSL /
8992NULL
9093};
9194

‎ssh-keygen.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Author: Tatu Ylonen <[email protected]>
44* Copyright (c) 1994 Tatu Ylonen <[email protected]>, Espoo, Finland
@@ -273,6 +273,10 @@ ask_filename(struct passwd pw, const char prompt)
273273case KEY_MLDSA44_ED25519_CERT :
274274name = _PATH_SSH_CLIENT_ID_MLDSA44_ED25519 ;
275275break ;
276+ case KEY_MLDSA87_P384 :
277+ case KEY_MLDSA87_P384_CERT :
278+ name = _PATH_SSH_CLIENT_ID_MLDSA87_P384 ;
279+ break ;
276280default :
277281fatal ( "bad key type" );
278282}
@@ -1051,6 +1055,10 @@ do_gen_all_hostkeys(struct passwd *pw)
10511055#ifdef USE_MLDSA
10521056{ "mldsa44-ed25519" , "MLDSA44-ED25519" ,
10531057_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 /
10541062#endif
10551063{ NULL , NULL , NULL }
10561064};
@@ -3444,8 +3452,8 @@ usage(void)
34443452fprintf ( stderr ,

‎ssh-keyscan.c‎

Original file line numberDiff line numberDiff 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 $ /
22/*
33* Copyright 1995, 1996 by David Mazieres <[email protected]>.
44*
@@ -66,12 +66,13 @@ int ssh_port = SSH_DEFAULT_PORT;
6666#define KT_ECDSA_SK (1<<4)
6767#define KT_ED25519_SK (1<<5)
6868#define KT_MLDSA44_ED25519 (1<<6)
69+ #define KT_MLDSA87_P384 (1<<7)
6970
7071#define KT_MIN KT_RSA
71- #define KT_MAX KT_MLDSA44_ED25519
72+ #define KT_MAX KT_MLDSA87_P384
7273
7374int 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 ;
7576
7677int hash_hosts = 0 ; / Hash hostname on output /
7778
@@ -268,6 +269,11 @@ keygrab_ssh2(con *c)
268269"ssh-mldsa44-ed25519-cert" :
269270"ssh-mldsa44-ed25519" ;
270271break ;
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 ↗