JOSE Working Group M. Jones
Internet-Draft Microsoft
Intended status: Standards Track April 25, 2013
Expires: October 27, 2013
JSON Web Algorithms (JWA)
draft-ietf-jose-json-web-algorithms-10
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 October 27, 2013.
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 October 27, 2013 [Page 1]
Internet-Draft JSON Web Algorithms (JWA) April 2013
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 . . . . . . 7
2.4. Defined Terms . . . . . . . . . . . . . . . . . . . . . . 8
3. Cryptographic Algorithms for JWS . . . . . . . . . . . . . . . 8
3.1. "alg" (Algorithm) Header Parameter Values for JWS . . . . 8
3.2. MAC with HMAC SHA-256, HMAC SHA-384, or HMAC SHA-512 . . . 9
3.3. Digital Signature with RSA SHA-256, RSA SHA-384, or
RSA SHA-512 . . . . . . . . . . . . . . . . . . . . . . . 10
3.4. Digital Signature with ECDSA P-256 SHA-256, ECDSA
P-384 SHA-384, or ECDSA P-521 SHA-512 . . . . . . . . . . 11
3.5. Using the Algorithm "none" . . . . . . . . . . . . . . . . 12
3.6. Additional Digital Signature/MAC Algorithms and
Parameters . . . . . . . . . . . . . . . . . . . . . . . . 13
4. Cryptographic Algorithms for JWE . . . . . . . . . . . . . . . 13
4.1. "alg" (Algorithm) Header Parameter Values for JWE . . . . 13
4.2. "enc" (Encryption Method) Header Parameter Values for
JWE . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.3. Key Encryption with RSAES-PKCS1-V1_5 . . . . . . . . . . . 16
4.4. Key Encryption with RSAES OAEP . . . . . . . . . . . . . . 16
4.5. Key Wrapping with AES Key Wrap . . . . . . . . . . . . . . 16
4.6. Direct Encryption with a Shared Symmetric Key . . . . . . 16
4.7. Key Agreement with Elliptic Curve Diffie-Hellman
Ephemeral Static (ECDH-ES) . . . . . . . . . . . . . . . . 16
4.7.1. Key Derivation for "ECDH-ES" . . . . . . . . . . . . . 17
4.8. AES_CBC_HMAC_SHA2 Algorithms . . . . . . . . . . . . . . . 18
4.8.1. Conventions Used in Defining AES_CBC_HMAC_SHA2 . . . . 18
4.8.2. Generic AES_CBC_HMAC_SHA2 Algorithm . . . . . . . . . 19
4.8.2.1. AES_CBC_HMAC_SHA2 Encryption . . . . . . . . . . . 19
4.8.2.2. AES_CBC_HMAC_SHA2 Decryption . . . . . . . . . . . 21
4.8.3. AES_128_CBC_HMAC_SHA_256 . . . . . . . . . . . . . . . 21
4.8.4. AES_256_CBC_HMAC_SHA_512 . . . . . . . . . . . . . . . 22
4.8.5. Plaintext Encryption with AES_CBC_HMAC_SHA2 . . . . . 22
4.9. Plaintext Encryption with AES GCM . . . . . . . . . . . . 22