JSON Web Encryption (JWE)
draft-ietf-jose-json-web-encryption-07

The information below is for an old version of the document
Document Type Active Internet-Draft (jose WG)
Last updated 2012-11-07
Replaces draft-jones-json-web-encryption
Stream IETF
Intended RFC status (None)
Formats pdf htmlized (tools) 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                             E. Rescorla
Expires: May 10, 2013                                               RTFM
                                                           J. Hildebrand
                                                                   Cisco
                                                        November 6, 2012

                       JSON Web Encryption (JWE)
                 draft-ietf-jose-json-web-encryption-07

Abstract

   JSON Web Encryption (JWE) is a means of representing encrypted
   content using JavaScript Object Notation (JSON) data structures.
   Cryptographic algorithms and identifiers for use with this
   specification are described in the separate JSON Web Algorithms (JWA)
   specification.  Related digital signature and MAC capabilities are
   described in the separate JSON Web Signature (JWS) specification.

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 May 10, 2013.

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, et al.             Expires May 10, 2013                  [Page 1]
Internet-Draft                     JWE                     November 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 . . . . . . . . . . . . . . . . . . . . . . . . .  5
     1.1.  Notational Conventions . . . . . . . . . . . . . . . . . .  5
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  5
   3.  JSON Web Encryption (JWE) Overview . . . . . . . . . . . . . .  7
     3.1.  Example JWE using RSAES OAEP and AES GCM . . . . . . . . .  8
     3.2.  Example JWE using RSAES-PKCS1-V1_5 and AES CBC . . . . . .  9
   4.  JWE Header . . . . . . . . . . . . . . . . . . . . . . . . . . 11
     4.1.  Reserved Header Parameter Names  . . . . . . . . . . . . . 12
       4.1.1.  "alg" (Algorithm) Header Parameter . . . . . . . . . . 12
       4.1.2.  "enc" (Encryption Method) Header Parameter . . . . . . 12
       4.1.3.  "epk" (Ephemeral Public Key) Header Parameter  . . . . 13
       4.1.4.  "zip" (Compression Algorithm) Header Parameter . . . . 13
       4.1.5.  "jku" (JWK Set URL) Header Parameter . . . . . . . . . 13
       4.1.6.  "jwk" (JSON Web Key) Header Parameter  . . . . . . . . 13
       4.1.7.  "x5u" (X.509 URL) Header Parameter . . . . . . . . . . 13
       4.1.8.  "x5t" (X.509 Certificate Thumbprint) Header
               Parameter  . . . . . . . . . . . . . . . . . . . . . . 14
       4.1.9.  "x5c" (X.509 Certificate Chain) Header Parameter . . . 14
       4.1.10. "kid" (Key ID) Header Parameter  . . . . . . . . . . . 15
       4.1.11. "typ" (Type) Header Parameter  . . . . . . . . . . . . 15
       4.1.12. "cty" (Content Type) Header Parameter  . . . . . . . . 15
       4.1.13. "apu" (Agreement PartyUInfo) Header Parameter  . . . . 15
       4.1.14. "apv" (Agreement PartyVInfo) Header Parameter  . . . . 15
       4.1.15. "epu" (Encryption PartyUInfo) Header Parameter . . . . 16
       4.1.16. "epv" (Encryption PartyVInfo) Header Parameter . . . . 16
     4.2.  Public Header Parameter Names  . . . . . . . . . . . . . . 16
     4.3.  Private Header Parameter Names . . . . . . . . . . . . . . 16
   5.  Message Encryption . . . . . . . . . . . . . . . . . . . . . . 16
   6.  Message Decryption . . . . . . . . . . . . . . . . . . . . . . 18
   7.  CMK Encryption . . . . . . . . . . . . . . . . . . . . . . . . 19
   8.  Encrypting JWEs with Cryptographic Algorithms  . . . . . . . . 20
   9.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 20
     9.1.  Registration of JWE Header Parameter Names . . . . . . . . 20
Show full document text