JSON Web Encryption (JWE)
draft-ietf-jose-json-web-encryption-02
JOSE Working Group M. Jones
Internet-Draft Microsoft
Intended status: Standards Track E. Rescorla
Expires: November 13, 2012 RTFM
J. Hildebrand
Cisco
May 12, 2012
JSON Web Encryption (JWE)
draft-ietf-jose-json-web-encryption-02
Abstract
JSON Web Encryption (JWE) is a means of representing encrypted
content using JSON data structures. Cryptographic algorithms and
identifiers used with this specification are enumerated in the
separate JSON Web Algorithms (JWA) specification. Related digital
signature and MAC capabilities are described in the separate JSON Web
Signature (JWS) specification.
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.
Jones, et al. Expires November 13, 2012 [Page 1]
Internet-Draft JWE May 2012
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.
Jones, et al. Expires November 13, 2012 [Page 2]
Internet-Draft JWE May 2012
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. JSON Web Encryption (JWE) Overview . . . . . . . . . . . . . . 6
3.1. Example JWE with an Integrated Integrity Check . . . . . . 6
3.2. Example JWE with a Separate Integrity Check . . . . . . . 7
4. JWE Header . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1. Reserved Header Parameter Names . . . . . . . . . . . . . 8
4.1.1. "alg" (Algorithm) Header Parameter . . . . . . . . . . 9
4.1.2. "enc" (Encryption Method) Header Parameter . . . . . . 9
4.1.3. "int" (Integrity Algorithm) Header Parameter . . . . . 9
4.1.4. "iv" (Initialization Vector) Header Parameter . . . . 10
4.1.5. "epk" (Ephemeral Public Key) Header Parameter . . . . 10
4.1.6. "zip" (Compression Algorithm) Header Parameter . . . . 10
4.1.7. "jku" (JWK Set URL) Header Parameter . . . . . . . . . 10
4.1.8. "jwk" (JSON Web Key) Header Parameter . . . . . . . . 10
4.1.9. "x5u" (X.509 URL) Header Parameter . . . . . . . . . . 11
4.1.10. "x5t" (X.509 Certificate Thumbprint) Header
Parameter . . . . . . . . . . . . . . . . . . . . . . 11
4.1.11. "x5c" (X.509 Certificate Chain) Header Parameter . . . 11
4.1.12. "kid" (Key ID) Header Parameter . . . . . . . . . . . 12
4.1.13. "typ" (Type) Header Parameter . . . . . . . . . . . . 12
4.2. Public Header Parameter Names . . . . . . . . . . . . . . 12
4.3. Private Header Parameter Names . . . . . . . . . . . . . . 12
5. Message Encryption . . . . . . . . . . . . . . . . . . . . . . 13
6. Message Decryption . . . . . . . . . . . . . . . . . . . . . . 14
7. Key Derivation . . . . . . . . . . . . . . . . . . . . . . . . 15
8. CMK Encryption . . . . . . . . . . . . . . . . . . . . . . . . 16
8.1. Asymmetric Encryption . . . . . . . . . . . . . . . . . . 16
Show full document text