CFRG ECDH and signatures in JOSE
draft-ietf-jose-cfrg-curves-00

The information below is for an old version of the document
Document Type Active Internet-Draft (jose WG)
Last updated 2015-12-28
Replaces draft-liusvaara-jose-cfrg-curves
Stream IETF
Intended RFC status (None)
Formats pdf htmlized bibtex
Reviews
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                       I. Liusvaara
Internet-Draft                                               Independent
Intended status: Standards Track                       December 28, 2015
Expires: June 30, 2016

                    CFRG ECDH and signatures in JOSE
                     draft-ietf-jose-cfrg-curves-00

Abstract

   This document defines how to use Diffie-Hellman algorithms "X25519"
   and "X448" as well as signature algorithms "Ed25519", "Ed25519ph",
   "Ed448" and "Ed448ph" from IRTF CFRG elliptic curves work in JOSE.

Status of This Memo

   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 http://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 June 30, 2016.

Copyright Notice

   Copyright (c) 2015 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
   (http://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.

Liusvaara                 Expires June 30, 2016                 [Page 1]
Internet-Draft      CFRG ECDH and signatures in JOSE       December 2015

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Requirements Terminology  . . . . . . . . . . . . . . . .   3
   2.  Key type 'OKP'  . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Algorithms  . . . . . . . . . . . . . . . . . . . . . . . . .   3
     3.1.  Signatures  . . . . . . . . . . . . . . . . . . . . . . .   3
       3.1.1.  Algorithms  . . . . . . . . . . . . . . . . . . . . .   4
       3.1.2.  Signing . . . . . . . . . . . . . . . . . . . . . . .   4
       3.1.3.  Verification  . . . . . . . . . . . . . . . . . . . .   4
     3.2.  ECDH-ES . . . . . . . . . . . . . . . . . . . . . . . . .   4
       3.2.1.  Performing the ECDH operation . . . . . . . . . . . .   5
   4.  Security considerations . . . . . . . . . . . . . . . . . . .   5
   5.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   6
   6.  IANA considerations . . . . . . . . . . . . . . . . . . . . .   6
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   8
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .   8
     7.2.  Informative References  . . . . . . . . . . . . . . . . .   9
   Appendix A.  Examples . . . . . . . . . . . . . . . . . . . . . .   9
     A.1.  Ed25519 private key . . . . . . . . . . . . . . . . . . .   9
     A.2.  Ed25519 public key  . . . . . . . . . . . . . . . . . . .  10
     A.3.  JWK thumbprint canonicalization . . . . . . . . . . . . .  10
     A.4.  Ed25519 Signing . . . . . . . . . . . . . . . . . . . . .  10
     A.5.  Ed25519 Validation  . . . . . . . . . . . . . . . . . . .  11
     A.6.  ECDH-ES with X25519 . . . . . . . . . . . . . . . . . . .  12
     A.7.  ECDH-ES with X448 . . . . . . . . . . . . . . . . . . . .  13
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  14

1.  Introduction

   Internet Research Task Force (IRTF) Crypto Forum Research Group
   (CFRG) selected new Diffie-Hellman algorithms ("X25519" and "X448";
   [I-D.irtf-cfrg-curves]) and signature algorithms ("Ed25519",
   "Ed25519ph", "Ed448" and "Ed448ph"; [I-D.irtf-cfrg-eddsa]) for
   asymmetric key cryptography.  This document defines how those
   algorithms are to be used in JOSE in inter-operable manner.

   This document defines the conventions to be used in context of
   [RFC7517] and [RFC7518]

   While the CFRG also defined two pairs of isogenous elliptic curves
   that underlie these algorithms, these curves are not directly
   exposed, as the algorithms laid on top are sufficient for the
   purposes of JOSE and are much easier to use (e.g. trying to apply
   ECDSA to those curves leads to nasty corner-cases and produces odd
   results).

Liusvaara                 Expires June 30, 2016                 [Page 2]
Internet-Draft      CFRG ECDH and signatures in JOSE       December 2015
Show full document text