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

The information below is for an old version of the document
Document Type Active Internet-Draft (jose WG)
Last updated 2012-10-15
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                        October 15, 2012
Expires: April 18, 2013

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

Abstract

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

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 April 18, 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
   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                    Expires April 18, 2013                 [Page 1]
Internet-Draft          JSON Web Algorithms (JWA)           October 2012

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  4
     1.1.  Notational Conventions . . . . . . . . . . . . . . . . . .  4
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  4
     2.1.  Terms Incorporated from the JWS Specification  . . . . . .  4
     2.2.  Terms Incorporated from the JWE Specification  . . . . . .  5
     2.3.  Terms Incorporated from the JWK Specification  . . . . . .  6
     2.4.  Defined Terms  . . . . . . . . . . . . . . . . . . . . . .  7
   3.  Cryptographic Algorithms for JWS . . . . . . . . . . . . . . .  7
     3.1.  "alg" (Algorithm) Header Parameter Values for JWS  . . . .  7
     3.2.  MAC with HMAC SHA-256, HMAC SHA-384, or HMAC SHA-512 . . .  8
     3.3.  Digital Signature with RSA SHA-256, RSA SHA-384, or
           RSA SHA-512  . . . . . . . . . . . . . . . . . . . . . . .  9
     3.4.  Digital Signature with ECDSA P-256 SHA-256, ECDSA
           P-384 SHA-384, or ECDSA P-521 SHA-512  . . . . . . . . . . 10
     3.5.  Using the Algorithm "none" . . . . . . . . . . . . . . . . 12
     3.6.  Additional Digital Signature/MAC Algorithms and
           Parameters . . . . . . . . . . . . . . . . . . . . . . . . 12
   4.  Cryptographic Algorithms for JWE . . . . . . . . . . . . . . . 12
     4.1.  "alg" (Algorithm) Header Parameter Values for JWE  . . . . 12
     4.2.  "enc" (Encryption Method) Header Parameter Values for
           JWE  . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
     4.3.  Key Encryption with RSAES-PKCS1-V1_5 . . . . . . . . . . . 15
     4.4.  Key Encryption with RSAES OAEP . . . . . . . . . . . . . . 15
     4.5.  Key Encryption with AES Key Wrap . . . . . . . . . . . . . 15
     4.6.  Direct Encryption with a Shared Symmetric Key  . . . . . . 15
     4.7.  Key Agreement with Elliptic Curve Diffie-Hellman
           Ephemeral Static (ECDH-ES) . . . . . . . . . . . . . . . . 15
       4.7.1.  Key Derivation for "ECDH-ES" . . . . . . . . . . . . . 16
     4.8.  Composite Plaintext Encryption Algorithms
           "A128CBC+HS256" and "A256CBC+HS512"  . . . . . . . . . . . 17
       4.8.1.  Key Derivation for "A128CBC+HS256" and
               "A256CBC+HS512"  . . . . . . . . . . . . . . . . . . . 17
       4.8.2.  Encryption Calculation for "A128CBC+HS256" and
               "A256CBC+HS512"  . . . . . . . . . . . . . . . . . . . 18
       4.8.3.  Integrity Calculation for "A128CBC+HS256" and
               "A256CBC+HS512"  . . . . . . . . . . . . . . . . . . . 18
     4.9.  Plaintext Encryption with AES GCM  . . . . . . . . . . . . 19
     4.10. Additional Encryption Algorithms and Parameters  . . . . . 19
   5.  Cryptographic Algorithms for JWK . . . . . . . . . . . . . . . 20
     5.1.  "alg" (Algorithm Family) Parameter Values for JWK  . . . . 20
     5.2.  JWK Parameters for Elliptic Curve Keys . . . . . . . . . . 21
Show full document text