OpenBSD Journal

Cryptography changes in OpenSSH (in OpenBSD -current)

Contributed by rueda on from the interest-PiQued dept.

In the shadow of recent announcements suggesting that the need for a shift to post-quantum (PQ) cryptographic algorthims is becoming urgent, characterized by Damien Miller (djm@) in a fediverse post,

No how much more complicated my life is going to get by whatever motivated the NSA/Anthropic statements I will take great solace in knowing that it's going to be 10000x worse for cryptocurrencies

there have been several recent changes to OpenSSH in -current:

  1. Damien Miller (djm@) changed the default key type generated by ssh-keygen(1) to ECDSA NISTP384:

    CVSROOT:	/cvs
    Module name:	src
    Changes by:	djm@cvs.openbsd.org	2026/12/03 02:40:32
    
    Modified files:
    	usr.bin/ssh    : ssh-keygen.c 
    
    Log message:
    switch default key type generated to ECDSA NISTP384; ok markus@
    

    Previously, ECDSA keys defaulted to 256 bits.

  2. The default first-preference signature algorithm has been changed to ML-DSA 44/ed25519 hybrid:

    CVSROOT:	/cvs
    Module name:	src
    Changes by:	djm@cvs.openbsd.org	2026/12/03 02:41:40
    
    Modified files:
    	usr.bin/ssh    : myproposal.h 
    
    Log message:
    change the default signature algorithm preference order to prefer
    ML-DSA 44/ed25519 hybrid followed by ECDSA NISTP384
    
    ok markus@
    
  3. Initial support for composite ML-DSA 87 / ECDSA p384 signatures has been added:

    CVSROOT:	/cvs
    Module name:	src
    Changes by:	djm@cvs.openbsd.org	2026/12/04 18:42:45
    
    Modified files:
    	usr.bin/ssh    : Makefile.inc authfd.c authfile.c 
    	                 libcrux-mlkem-mldsa.c pathnames.h readconf.c 
    	                 servconf.c ssh-add.c ssh-keygen.c ssh-keyscan.c 
    	                 ssh-keysign.c ssh-mldsa-eddsa.c ssh.c 
    	                 sshconnect.c sshd-auth.c sshd-session.c sshd.c 
    	                 sshkey.c sshkey.h 
    
    Log message:
    Add support for composite ML-DSA 87 / ECDSA p384 signatures
    based on draft-ietf-sshm-composite-sigs-01 as "ssh-mldsa87-p384"
    with the corresponding "ssh-mldsa87-p384-cert" certificate type
    
    Not yet enabled by default.
    
    ok markus
    

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]