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

The information below is for an old version of the document
Document Type Active Internet-Draft (jose WG)
Last updated 2013-07-29
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                           July 29, 2013
Expires: January 30, 2014

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

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 January 30, 2014.

Copyright Notice

   Copyright (c) 2013 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 January 30, 2014                [Page 1]
Internet-Draft          JSON Web Algorithms (JWA)              July 2013

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  5
     1.1.  Notational Conventions . . . . . . . . . . . . . . . . . .  5
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  5
     2.1.  Terms Incorporated from the JWS Specification  . . . . . .  5
     2.2.  Terms Incorporated from the JWE Specification  . . . . . .  6
     2.3.  Terms Incorporated from the JWK Specification  . . . . . .  9
     2.4.  Defined Terms  . . . . . . . . . . . . . . . . . . . . . .  9
   3.  Cryptographic Algorithms for JWS . . . . . . . . . . . . . . .  9
     3.1.  "alg" (Algorithm) Header Parameter Values for JWS  . . . .  9
     3.2.  MAC with HMAC SHA-2 Functions  . . . . . . . . . . . . . . 11
     3.3.  Digital Signature with RSASSA-PKCS1-V1_5 . . . . . . . . . 12
     3.4.  Digital Signature with ECDSA . . . . . . . . . . . . . . . 13
     3.5.  Digital Signature with RSASSA-PSS  . . . . . . . . . . . . 14
     3.6.  Using the Algorithm "none" . . . . . . . . . . . . . . . . 15
     3.7.  Additional Digital Signature/MAC Algorithms and
           Parameters . . . . . . . . . . . . . . . . . . . . . . . . 15
   4.  Cryptographic Algorithms for JWE . . . . . . . . . . . . . . . 16
     4.1.  "alg" (Algorithm) Header Parameter Values for JWE  . . . . 16
     4.2.  "enc" (Encryption Method) Header Parameter Values for
           JWE  . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
     4.3.  Key Encryption with RSAES-PKCS1-V1_5 . . . . . . . . . . . 22
     4.4.  Key Encryption with RSAES OAEP . . . . . . . . . . . . . . 22
     4.5.  Key Wrapping with AES Key Wrap . . . . . . . . . . . . . . 22
     4.6.  Direct Encryption with a Shared Symmetric Key  . . . . . . 22
     4.7.  Key Agreement with Elliptic Curve Diffie-Hellman
           Ephemeral Static (ECDH-ES) . . . . . . . . . . . . . . . . 22
       4.7.1.  Header Parameters Used for ECDH Key Agreement  . . . . 23
         4.7.1.1.  "epk" (Ephemeral Public Key) Header Parameter  . . 23
         4.7.1.2.  "apu" (Agreement PartyUInfo) Header Parameter  . . 23
         4.7.1.3.  "apv" (Agreement PartyVInfo) Header Parameter  . . 24
       4.7.2.  Key Derivation for ECDH Key Agreement  . . . . . . . . 24
     4.8.  Key Encryption with AES GCM  . . . . . . . . . . . . . . . 25
       4.8.1.  Header Parameters Used for AES GCM Key Encryption  . . 26
         4.8.1.1.  "iv" (Initialization Vector) Header Parameter  . . 26
         4.8.1.2.  "tag" (Authentication Tag) Header Parameter  . . . 26
     4.9.  Key Encryption with PBES2  . . . . . . . . . . . . . . . . 26
       4.9.1.  Header Parameters Used for PBES2 Key Encryption  . . . 26
         4.9.1.1.  "p2s" (PBES2 salt) Parameter . . . . . . . . . . . 26
         4.9.1.2.  "p2c" (PBES2 count) Parameter  . . . . . . . . . . 27
     4.10. AES_CBC_HMAC_SHA2 Algorithms . . . . . . . . . . . . . . . 27
Show full document text