<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="no"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-ietf-curdle-ssh-ed25519-ed448-11" updates="RFC4253" ipr="trust200902" obsoletes="" submissionType="IETF" xml:lang="en" tocInclude="false" tocDepth="4" symRefs="true" sortRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 2.35.0 -->
  <front>
    <title abbrev="Ed25519 for SSH">
     Ed25519 and Ed448 public key algorithms for the Secure Shell (SSH) protocol
    </title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-curdle-ssh-ed25519-ed448-11"/>
    <author initials="B." surname="Harris" fullname="Ben Harris">
      <address>
        <postal>
          <street>2A Eachard Road</street>
          <city>CAMBRIDGE</city>
          <code>CB3 0HY</code>
          <country>UNITED KINGDOM</country>
        </postal>
        <email>bjh21@bjh21.me.uk</email>
      </address>
    </author>
    <author initials="L." surname="Velvindron" fullname="Loganaden Velvindron">
      <organization> cyberstorm.mu</organization>
      <address>
        <postal>
          <street>88, Avenue De Plevitz</street>
          <city>Roches Brunes</city>
          <country>Mauritius</country>
        </postal>
        <email>logan@cyberstorm.mu</email>
      </address>
    </author>
    <date year="2019"/>
    <workgroup>Internet Engineering Task Force</workgroup>
    <abstract>
      <t>
       This document describes the use of the Ed25519 and Ed448 digital
       signature algorithm in the Secure Shell (SSH) protocol.
      </t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <t>
       Secure Shell (SSH) <xref target="RFC4251" format="default"/> 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 <xref target="RFC8032" format="default"/> is a digital
       signature system. OpenSSH 6.5 <xref target="OpenSSH-6.5" format="default"/>
       introduced support for using Ed25519 for server and user
       authentication and was then followed by other SSH implementations. 
      </t>
      <t>
       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".
      </t>
      <t>
       [TO BE REMOVED: Please send comments on this draft to curdle@ietf.org.]
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Conventions Used in This Document</name>
      <t>
       The descriptions of key and signature formats use the notation
       introduced in <xref target="RFC4251" format="default">[RFC4251], Section
       3</xref> and the string data type from <xref target="RFC4251" format="default">[RFC4251], Section 5</xref>.
      </t>
      <section numbered="true" toc="default">
        <name>Requirements Language</name>
        <t>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 <xref target="RFC2119" format="default">RFC 2119</xref> <xref target="RFC8174" format="default">RFC 8174</xref> 
       when, and only when, they appear in all capitals, as shown here.</t>
      </section>
    </section>
    <section numbered="true" toc="default">
      <name>Public Key Algorithm</name>
      <t>
       This document describes a public key algorithm for use with SSH
       in accordance with <xref target="RFC4253" format="default">[RFC4253], Section
       6.6</xref>. The name of the algorithm is "ssh-ed25519". This
       algorithm only supports signing and not encryption. 
      </t>
      <t>
      Additionally, this document describes another public key algorithm.
      The name of the algorithm is "ssh-ed448". This algorithm only supports
      signing and not encryption.
      </t>
      <t>
Standard implementations of SSH SHOULD implement these signature algorithms.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Public Key Format</name>
      <t>
	 The "ssh-ed25519" key format has the following encoding:
      </t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
string    "ssh-ed25519"
string    key
       ]]></artwork>
      <t>
       Here 'key' is the 32-octet public key described by
       <xref target="RFC8032" format="default">[RFC8032], Section 5.1.5</xref>.
      </t>
      <t>
	 The "ssh-ed448" key format has the following encoding:
      </t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
string    "ssh-ed448"
string    key
       ]]></artwork>
      <t>
       Here 'key' is the 57-octet public key described by
       <xref target="RFC8032" format="default">[RFC8032], Section 5.2.5</xref>.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Signature Algorithm</name>
      <t>
       Signatures are generated according to the procedure in
       <xref target="RFC8032" format="default">[RFC8032], Section 5.1.6 and Section 5.2.6 </xref>.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Signature Format</name>
      <t>
	 The "ssh-ed25519" key format has the following encoding:
      </t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
string    "ssh-ed25519"
string    signature
       ]]></artwork>
      <t>
       Here 'signature' is the 64-octet signature produced in
       accordance with <xref target="RFC8032" format="default">[RFC8032], Section
       5.1.6</xref>.
      </t>
      <t>
	 The "ssh-ed448" key format has the following encoding:
      </t>
      <artwork name="" type="" align="left" alt=""><![CDATA[
string    "ssh-ed448"
string    signature
       ]]></artwork>
      <t>
       Here 'signature' is the 114-octet signature produced in
       accordance with <xref target="RFC8032" format="default">[RFC8032], Section
       5.2.6</xref>.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Verification Algorithm</name>
      <t>
       Ed25519 signatures are verified according to the procedure in
       <xref target="RFC8032" format="default">[RFC8032], Section 5.1.7</xref>.
      </t>
      <t>
       Ed448 signatures are verified according to the procedure in
       <xref target="RFC8032" format="default">[RFC8032], Section 5.2.7</xref>.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>SSHFP DNS resource records</name>
      <t>
Usage and generation of SSHFP DNS resource record is described in <xref target="RFC4255" format="default"/>. 
The generation of SSHFP resource records for "ssh-ed25519" keys is described in <xref target="RFC7479" format="default"> </xref>. 
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.
      </t>
      <t>
       The generation of SSHFP resource records for "ssh-ed25519" keys
       is described in <xref target="RFC7479" format="default"/>.
      </t>
      <t>
       The generation of SSHFP resource records for "ssh-ed448" keys
       is described as follows.
      </t>
      <t>
The encoding of Ed448 public keys is described in <xref target="ED448" format="default"/>. 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.
</t>
      <t>
The SSHFP Resource Record for the Ed448 public key with SHA-256 fingerprint
would for example be:
</t>
      <t>
example.com. IN SSHFP TBD 2 ( a87f1b687ac0e57d2a081a2f2826723
                                     34d90ed316d2b818ca9580ea384d924
                                     01 )
</t>
      <t>
The 2 here indicates SHA-256 <xref target="RFC6594" format="default"/>.
</t>
    </section>
    <section numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>This document augments the Public Key Algorithm Names in <xref target="RFC4250" format="default">[RFC4250], Section 4.6.2</xref>.
      </t>
      <t>
       IANA is requested to add to the Public Key Algorithm Names
       registry <xref target="IANA-PKA" format="default"/> with the following
       entry:
      </t>
      <table align="center">
        <thead>
          <tr>
            <th align="left">Public Key Algorithm Name</th>
            <th align="left">Reference</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">ssh-ed25519</td>
            <td align="left">This Draft</td>
          </tr>
          <tr>
            <td align="left">ssh-ed448</td>
            <td align="left">This Draft</td>
          </tr>
        </tbody>
      </table>
      <t>
IANA is requested to add the following entry to the "SSHFP RR Types for public
   key algorithms" registry <xref target="IANA-SSHFP" format="default"/>:
      </t>
      <t>+--------+-------------+------------+</t>
      <t>| Value  | Description |  Reference |</t>
      <t>+--------+-------------+------------+</t>
      <t>|   TBD    |    Ed448  | [this-draft]  |</t>
      <t>+--------+-------------+------------+</t>
      <t>
We strongly suggest 6 as value.
</t>
      <t>
	[TO BE REMOVED: This registration should take place at the
	following location:
        &lt;http://www.iana.org/assignments/ssh-parameters/ssh-parameters.xhtml#ssh-parameters-19&gt;]
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>
       The security considerations in <xref target="RFC4251" format="default">
       [RFC4251], Section 9</xref> apply to all SSH
       implementations, including those using Ed25519 and Ed448.
      </t>
      <t>
       The security considerations in <xref target="RFC8032" format="default">
       [RFC8032], Section 8</xref> and <xref target="RFC7479" format="default"> </xref>  apply to all uses of Ed25519 and Ed448
       including those in SSH.
      </t>
    </section>
    <section numbered="true" toc="default">
      <name>Acknowledgements</name>
      <t>
       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.
      </t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4250.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4251.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4253.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.4255.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6594.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8032.xml"/>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="IANA-PKA" target="http://www.iana.org/assignments/ssh-parameters/ssh-parameters.xhtml#ssh-parameters-19">
          <front>
            <title>Secure Shell (SSH) Protocol Parameters:
	 Public Key Algorithm Names</title>
            <author>
              <organization>Internet Assigned Numbers Authority (IANA)
              </organization>
            </author>
            <date month="May" year="2017"/>
          </front>
        </reference>
        <reference anchor="IANA-SSHFP" target="https://www.iana.org/assignments/dns-sshfp-rr-parameters/dns-sshfp-rr-parameters.xhtml#dns-sshfp-rr-parameters-1">
          <front>
            <title>Secure Shell (SSH) Protocol Parameters:
	 Public Key Algorithm Names</title>
            <author>
              <organization>Internet Assigned Numbers Authority (IANA)
              </organization>
            </author>
            <date month="May" year="2017"/>
          </front>
        </reference>
        <xi:include href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7479.xml"/>
        <reference anchor="OpenSSH-6.5" target="http://www.openssh.com/txt/release-6.5">
          <front>
            <title>OpenSSH 6.5 release notes</title>
            <author surname="Friedl" initials="M." fullname="Marcus Friedl"/>
            <author surname="Provos" initials="N." fullname="Niels Provos"/>
            <author surname="de Raadt" initials="T." fullname="Theo de Raadt"/>
            <author surname="Steves" initials="K." fullname="Kevin Steves"/>
            <author surname="Miller" initials="D." fullname="Damien Miller"/>
            <author surname="Tucker" initials="D." fullname="Darren Tucker"/>
            <author surname="Rice" initials="T." fullname="Tim Rice"/>
            <author surname="Lindstrom" initials="B." fullname="Ben Lindstrom"/>
            <date month="January" year="2014"/>
          </front>
        </reference>
        <reference anchor="ED448" target="https://eprint.iacr.org/2015/625.pdf">
          <front>
            <title> Ed448-Goldilocks, a new elliptic curve</title>
            <author surname="Hamburg" initials="M." fullname="Mike Hamburg"/>
            <date month="January" year="2015"/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
