datatracker.ietf.org
Sign in
Version 5.6.2.p3, 2014-07-31
Report a bug

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

Document type: Active Internet-Draft (jose WG)
Document stream: IETF
Last updated: 2014-07-04
Intended RFC status: Proposed Standard
Other versions: plain text, xml, pdf, html

IETF State: Submitted to IESG for Publication Jun 2013 Jan 2014 Jan 2014 Jan 2014
Document shepherd: Karen O'Donoghue
Shepherd Write-Up: Last changed 2014-04-12

IESG State: AD Evaluation
Responsible AD: Kathleen Moriarty
Send notices to: jose-chairs@tools.ietf.org, draft-ietf-jose-json-web-algorithms@tools.ietf.org

JOSE Working Group                                              M. Jones
Internet-Draft                                                 Microsoft
Intended status: Standards Track                            July 4, 2014
Expires: January 5, 2015

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

Abstract

   The JSON Web Algorithms (JWA) specification registers cryptographic
   algorithms and identifiers to be used with the JSON Web Signature
   (JWS), JSON Web Encryption (JWE), and JSON Web Key (JWK)
   specifications.  It defines several IANA registries for these
   identifiers.

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 5, 2015.

Copyright Notice

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

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  5
     1.1.  Notational Conventions . . . . . . . . . . . . . . . . . .  5
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  5
   3.  Cryptographic Algorithms for Digital Signatures and MACs . . .  6
     3.1.  "alg" (Algorithm) Header Parameter Values for JWS  . . . .  6
     3.2.  HMAC with SHA-2 Functions  . . . . . . . . . . . . . . . .  7
     3.3.  Digital Signature with RSASSA-PKCS1-V1_5 . . . . . . . . .  8
     3.4.  Digital Signature with ECDSA . . . . . . . . . . . . . . .  9
     3.5.  Digital Signature with RSASSA-PSS  . . . . . . . . . . . . 10
     3.6.  Using the Algorithm "none" . . . . . . . . . . . . . . . . 11
   4.  Cryptographic Algorithms for Key Management  . . . . . . . . . 11
     4.1.  "alg" (Algorithm) Header Parameter Values for JWE  . . . . 12
     4.2.  Key Encryption with RSAES-PKCS1-V1_5 . . . . . . . . . . . 14
     4.3.  Key Encryption with RSAES OAEP . . . . . . . . . . . . . . 14
     4.4.  Key Wrapping with AES Key Wrap . . . . . . . . . . . . . . 14
     4.5.  Direct Encryption with a Shared Symmetric Key  . . . . . . 15
     4.6.  Key Agreement with Elliptic Curve Diffie-Hellman
           Ephemeral Static (ECDH-ES) . . . . . . . . . . . . . . . . 15
       4.6.1.  Header Parameters Used for ECDH Key Agreement  . . . . 16
         4.6.1.1.  "epk" (Ephemeral Public Key) Header Parameter  . . 16
         4.6.1.2.  "apu" (Agreement PartyUInfo) Header Parameter  . . 16
         4.6.1.3.  "apv" (Agreement PartyVInfo) Header Parameter  . . 17
       4.6.2.  Key Derivation for ECDH Key Agreement  . . . . . . . . 17
     4.7.  Key Encryption with AES GCM  . . . . . . . . . . . . . . . 18
       4.7.1.  Header Parameters Used for AES GCM Key Encryption  . . 19
         4.7.1.1.  "iv" (Initialization Vector) Header Parameter  . . 19
         4.7.1.2.  "tag" (Authentication Tag) Header Parameter  . . . 19
     4.8.  Key Encryption with PBES2  . . . . . . . . . . . . . . . . 19
       4.8.1.  Header Parameters Used for PBES2 Key Encryption  . . . 20
         4.8.1.1.  "p2s" (PBES2 salt input) Parameter . . . . . . . . 20
         4.8.1.2.  "p2c" (PBES2 count) Parameter  . . . . . . . . . . 21
   5.  Cryptographic Algorithms for Content Encryption  . . . . . . . 21
     5.1.  "enc" (Encryption Algorithm) Header Parameter Values
           for JWE  . . . . . . . . . . . . . . . . . . . . . . . . . 21
     5.2.  AES_CBC_HMAC_SHA2 Algorithms . . . . . . . . . . . . . . . 22

[include full document text]