Internet Engineering Task Force | B. Harris |
Internet-Draft | |
Intended status: Standards Track | L. Velvindron |
Expires: February 1, 2020 | cyberstorm.mu |
July 31, 2019 |
Ed25519 and Ed448 public key algorithms for the Secure Shell (SSH) protocol
draft-ietf-curdle-ssh-ed25519-ed448-09
This document describes the use of the Ed25519 and Ed448 digital signature algorithm in the Secure Shell (SSH) protocol.
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 February 1, 2020.
Copyright (c) 2019 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified 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. Ed25519 [RFC8032] is a digital signature system. OpenSSH 6.5 [OpenSSH-6.5] introduced support for using Ed25519 for server and user authentication and was then followed by other SSH implementations.
This document describes the method implemented by OpenSSH and others, and formalizes its use of the name "ssh-ed25519". Additionally, it also describes the use of Ed448 and formalizes its use of the name "ssh-ed448".
[TO BE REMOVED: Please send comments on this draft to curdle@ietf.org.]
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", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
This document describes a public key algorithm for use with SSH in accordance with [RFC4253], Section 6.6. The name of the algorithm is "ssh-ed25519". This algorithm only supports signing and not encryption.
Additionally, this document describes another public key algorithm. The name of the algorithm is "ssh-ed448". This algorithm only supports signing and not encryption.
Standard implementations of SSH SHOULD implement these signature algorithms.
The "ssh-ed25519" key format has the following encoding:
string "ssh-ed25519" string key
Here 'key' is the 32-octet public key described by [RFC8032], Section 5.1.5.
The "ssh-ed448" key format has the following encoding:
string "ssh-ed448" string key
Here 'key' is the 57-octet public key described by [RFC8032], Section 5.2.5.
Signatures are generated according to the procedure in [RFC8032], Section 5.2.6.
The "ssh-ed25519" key format has the following encoding:
string "ssh-ed25519" string signature
Here 'signature' is the 64-octet signature produced in accordance with [RFC8032], Section 5.1.6.
The "ssh-ed448" key format has the following encoding:
string "ssh-ed448" string signature
Here 'signature' is the 114-octet signature produced in accordance with [RFC8032], Section 5.2.6.
ED25519 signatures are verified according to the procedure in [RFC8032], Section 5.1.7.
ED448 signatures are verified according to the procedure in [RFC8032], Section 5.2.7.
Usage and generation of SSHFP DNS resource record is described in [RFC4255]. The generation of SSHFP resource records for "ssh-ed25519" keys is described in [RFC7479]. This section illustrates the generation of SSHFP resource records for "ssh-ed448" keys and the document specifies the corresponding Ed448 code point to the "SSHFP RR Types for public key algorithms" IANA registry.
The generation of SSHFP resource records for "ssh-ed25519" keys is described in [RFC7479].
The generation of SSHFP resource records for "ssh-ed448" keys is described as follows.
The encoding of ed448 public keys is described in [ED448]. In brief, an ed448 public key is a 57-octet value representing a 455-bit y-coordinate of an elliptic curve point, and a sign bit indicating the the corresponding x-coordinate.
the SSHFP Resource Record for the Ed448 public key with SHA-256 fingerprint would be example be:
example.com. IN SSHFP TBD 2 ( a87f1b687ac0e57d2a081a2f2826723 34d90ed316d2b818ca9580ea384d924 01 )
The 2 here indicates SHA-256 [RFC6594].
This document augments the Public Key Algorithm Names in [RFC4250], Section 4.6.2.
IANA is requested to add to the Public Key Algorithm Names registry [IANA-PKA] with the following entry:
Public Key Algorithm Name | Reference |
---|---|
ssh-ed25519 | This Draft |
ssh-ed448 | This Draft |
IANA is requested to add the following entry to the "SSHFP RR Types for public key algorithms" registry [IANA-SSHFP]:
+--------+-------------+------------+
| Value | Description | Reference |
+--------+-------------+------------+
| TBD | Ed448 | [this-draft] |
+--------+-------------+------------+
We suggest 6 as value.
[TO BE REMOVED: This registration should take place at the following location: <http://www.iana.org/assignments/ssh-parameters/ssh-parameters.xhtml#ssh-parameters-19>]
The security considerations in [RFC4251], Section 9 apply to all SSH implementations, including those using Ed25519 and Ed448.
The security considerations in [RFC8032], Section 8 and [RFC7479] apply to all uses of Ed25519 and Ed448 including those in SSH.
The OpenSSH implementation of Ed25519 in SSH was written by Markus Friedl. We are also grateful to Mark Baushke, Benjamin Kaduk and Daniel Migault for their comments.
[ED448] | Hamburg, M., "Ed448-Goldilocks, a new elliptic curve", January 2015. |
[IANA-PKA] | Internet Assigned Numbers Authority (IANA), "Secure Shell (SSH) Protocol Parameters: Public Key Algorithm Names", May 2017. |
[IANA-SSHFP] | Internet Assigned Numbers Authority (IANA), "Secure Shell (SSH) Protocol Parameters: Public Key Algorithm Names", May 2017. |
[OpenSSH-6.5] | Friedl, M., Provos, N., de Raadt, T., Steves, K., Miller, D., Tucker, D., Rice, T. and B. Lindstrom, "OpenSSH 6.5 release notes", January 2014. |
[RFC7479] | Moonesamy, S., "Using Ed25519 in SSHFP Resource Records", RFC 7479, DOI 10.17487/RFC7479, March 2015. |