JSON Web Algorithms (JWA)
draft-ietf-jose-json-web-algorithms-02

The information below is for an old version of the document
Document Type Active Internet-Draft (jose WG)
Last updated 2012-05-12
Stream IETF
Intended RFC status (None)
Formats pdf htmlized bibtex
Reviews
Stream WG state WG Document
Document shepherd None
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
JOSE Working Group                                              M. Jones
Internet-Draft                                                 Microsoft
Intended status: Standards Track                            May 12, 2012
Expires: November 13, 2012

                       JSON Web Algorithms (JWA)
                 draft-ietf-jose-json-web-algorithms-02

Abstract

   The JSON Web Algorithms (JWA) specification enumerates cryptographic
   algorithms and identifiers to be used with the JSON Web Signature
   (JWS) and JSON Web Encryption (JWE) specifications.

Requirements Language

   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 [RFC2119].

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 November 13, 2012.

Copyright Notice

   Copyright (c) 2012 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

Jones                   Expires November 13, 2012               [Page 1]
Internet-Draft          JSON Web Algorithms (JWA)               May 2012

   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.

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  4
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  4
   3.  Cryptographic Algorithms for JWS . . . . . . . . . . . . . . .  4
     3.1.  "alg" (Algorithm) Header Parameter Values for JWS  . . . .  4
     3.2.  MAC with HMAC SHA-256, HMAC SHA-384, or HMAC SHA-512 . . .  5
     3.3.  Digital Signature with RSA SHA-256, RSA SHA-384, or
           RSA SHA-512  . . . . . . . . . . . . . . . . . . . . . . .  6
     3.4.  Digital Signature with ECDSA P-256 SHA-256, ECDSA
           P-384 SHA-384, or ECDSA P-521 SHA-512  . . . . . . . . . .  7
     3.5.  Creating a Plaintext JWS . . . . . . . . . . . . . . . . .  9
     3.6.  Additional Digital Signature/MAC Algorithms and
           Parameters . . . . . . . . . . . . . . . . . . . . . . . .  9
   4.  Cryptographic Algorithms for JWE . . . . . . . . . . . . . . .  9
     4.1.  "alg" (Algorithm) Header Parameter Values for JWE  . . . .  9
     4.2.  "enc" (Encryption Method) Header Parameter Values for
           JWE  . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
     4.3.  "int" (Integrity Algorithm) Header Parameter Values
           for JWE  . . . . . . . . . . . . . . . . . . . . . . . . . 11
     4.4.  Key Encryption with RSA using RSA-PKCS1-1.5 Padding  . . . 11
     4.5.  Key Encryption with RSA using Optimal Asymmetric
           Encryption Padding (OAEP)  . . . . . . . . . . . . . . . . 11
     4.6.  Key Agreement with Elliptic Curve Diffie-Hellman
           Ephemeral Static (ECDH-ES) . . . . . . . . . . . . . . . . 12
     4.7.  Key Encryption with AES Key Wrap . . . . . . . . . . . . . 12
     4.8.  Plaintext Encryption with AES Cipher Block Chaining
           (CBC) Mode . . . . . . . . . . . . . . . . . . . . . . . . 12
     4.9.  Plaintext Encryption with AES Galois/Counter Mode (GCM)  . 12
     4.10. Integrity Calculation with HMAC SHA-256, HMAC SHA-384,
           or HMAC SHA-512  . . . . . . . . . . . . . . . . . . . . . 13
     4.11. Additional Encryption Algorithms and Parameters  . . . . . 13
   5.  Cryptographic Algorithms for JWK . . . . . . . . . . . . . . . 13
     5.1.  "alg" (Algorithm Family) Parameter Values for JWK  . . . . 14
     5.2.  JWK Parameters for Elliptic Curve Keys . . . . . . . . . . 14
       5.2.1.  "crv" (Curve) Parameter  . . . . . . . . . . . . . . . 14
       5.2.2.  "x" (X Coordinate) Parameter . . . . . . . . . . . . . 14
       5.2.3.  "y" (Y Coordinate) Parameter . . . . . . . . . . . . . 14
     5.3.  JWK Parameters for RSA Keys  . . . . . . . . . . . . . . . 14
       5.3.1.  "mod" (Modulus) Parameter  . . . . . . . . . . . . . . 15
Show full document text