Internet-Draft | ML-DSA for SSH | October 2025 |
Petrov | Expires 22 April 2026 | [Page] |
This document describes the use of the ML-DSA digital signature algorithms in the Secure Shell (SSH) protocol. Accordingly, this RFC updates RFC 4253.¶
This note is to be removed before publishing as an RFC.¶
The datatracker status page of the draft is draft-rpe-ssh-mldsa.¶
The source of this document is located at I-D ssh-mldsa. Implementation could be found at PKIX-SSHMLDSA-DEMO branch.¶
Discussion of this document takes place on the Secure Shell Maintenance (sshm)" mailing list which is archived here.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 22 April 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Secure Shell (SSH) [RFC4251] is a secure remote-login protocol. It provides for an extensible variety of public key algorithms for identifying servers and users to one another.¶
This document describes the use of ML-DSA algorithms to be implemented by Secure Shells (SSH) and standardize the use of names mldsa-44, mldsa-65, and mldsa-87. These algorithms correspond to the Table 1. "ML-DSA parameter sets" defined in [FIPS-204] Section 4 "Parameter Sets".¶
The descriptions of key and signature formats use the notation introduced in [RFC4251], Section 3 and the string data type from [RFC4251], Section 5.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This document describes a public key algorithms for use with SSH, as per [RFC4253], Section 6.6. The name of the algorithms are mldsa-44, mldsa-65, and mldsa-87. These algorithms only supports signing and not encryption. Keys are generated according to the procedure described in [FIPS-204] Algorithm 1 step 5.¶
Standard implementations of SSH SHOULD implement mldsa-65 public Key algorithm. It MAY implement mldsa-44 and mldsa-87 public key algorithms.¶
The mldsa-44 key format has the following encoding:¶
Here, 'key' is the 1312-octet public key encoded as is described in [FIPS-204] Algorithm 22.¶
The mldsa-65 key format has the following encoding:¶
Here, 'key' is the 1952-octet public key encoded as is described in [FIPS-204] Algorithm 22.¶
The mldsa-87 key format has the following encoding:¶
Here, 'key' is the 2592-octet public key encoded as is described in [FIPS-204] Algorithm 22.¶
Signatures are generated according to the procedure described in [FIPS-204]. Signature generation should use normal signing process (Pure ML-DSA Signature Generation) with empty string as context parameter. The process is defined in [FIPS-204] Algorithm 2 step 10(sign) and Algorithm 3 step 5(verify).¶
The mldsa-44 public key algorithm has the following format for encoding the signature:¶
Here, 'signature' is the 2420-octet signature produced in accordance with [FIPS-204] Algorithm 2.¶
The mldsa-65 public key algorithm has the following format for encoding the signature:¶
Here, 'signature' is the 3309-octet signature produced in accordance with [FIPS-204] Algorithm 2.¶
The mldsa-87 public key algorithm has the following format for encoding the signature:¶
Here, 'signature' is the 4627-octet signature produced in accordance with [FIPS-204] Algorithm 2.¶
ML-DSA signatures are verified according to the procedure in [FIPS-204] Algorithm 3 step 5.¶
This document augments the Public Key Algorithm Names in [RFC4250], Section 4.11.3.¶
This document requests new entries to "Public Key Algorithm Names" in the "Secure Shell (SSH) Protocol Parameters" registry [IANA-SSH] according to the procedures in [RFC9519], Section 3:¶
Public Key Algorithm Name | Reference |
---|---|
mldsa-44 | This document. |
mldsa-65 | This document. |
mldsa-87 | This document. |
The security considerations in [RFC4251], Section 9 apply to all SSH implementations, including those using ML-DSA-44, ML-DSA-65, and ML-DSA-87. Also rules in [FIPS-204] Section 3.6 "Additional Requirements" apply as well.¶