CBOR Object Signing and Encryption (COSE) - Structures and Process
draft-schaad-cose-rfc8152bis-struct-00

Document Type Active Internet-Draft (individual)
Last updated 2018-08-22
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
COSE Working Group                                             J. Schaad
Internet-Draft                                            August Cellars
Obsoletes: 8152 (if approved)                            August 22, 2018
Intended status: Standards Track
Expires: February 23, 2019

   CBOR Object Signing and Encryption (COSE) - Structures and Process
                 draft-schaad-cose-rfc8152bis-struct-00

Abstract

   Concise Binary Object Representation (CBOR) is a data format designed
   for small code size and small message size.  There is a need for the
   ability to have basic security services defined for this data format.
   This document defines the CBOR Object Signing and Encryption (COSE)
   protocol.  This specification describes how to create and process
   signatures, message authentication codes, and encryption using CBOR
   for serialization.  This specification additionally describes how to
   represent cryptographic keys using CBOR.

   This document along with [I-D.schaad-cose-rfc8152bis-algs] obsoletes
   RFC8152.

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 https://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 February 23, 2019.

Copyright Notice

   Copyright (c) 2018 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

Schaad                  Expires February 23, 2019               [Page 1]
Internet-Draft               COSE Structure                  August 2018

   (https://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.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   4
     1.1.  Design Changes from JOSE  . . . . . . . . . . . . . . . .   4
     1.2.  Requirements Terminology  . . . . . . . . . . . . . . . .   5
     1.3.  CBOR Grammar  . . . . . . . . . . . . . . . . . . . . . .   5
     1.4.  CBOR-Related Terminology  . . . . . . . . . . . . . . . .   6
     1.5.  Document Terminology  . . . . . . . . . . . . . . . . . .   7
   2.  Basic COSE Structure  . . . . . . . . . . . . . . . . . . . .   7
   3.  Header Parameters . . . . . . . . . . . . . . . . . . . . . .   9
     3.1.  Common COSE Headers Parameters  . . . . . . . . . . . . .  11
   4.  Signing Objects . . . . . . . . . . . . . . . . . . . . . . .  15
     4.1.  Signing with One or More Signers  . . . . . . . . . . . .  15
     4.2.  Signing with One Signer . . . . . . . . . . . . . . . . .  17
     4.3.  Externally Supplied Data  . . . . . . . . . . . . . . . .  18
     4.4.  Signing and Verification Process  . . . . . . . . . . . .  19
     4.5.  Computing Counter Signatures  . . . . . . . . . . . . . .  20
   5.  Encryption Objects  . . . . . . . . . . . . . . . . . . . . .  21
     5.1.  Enveloped COSE Structure  . . . . . . . . . . . . . . . .  21
       5.1.1.  Content Key Distribution Methods  . . . . . . . . . .  23
     5.2.  Single Recipient Encrypted  . . . . . . . . . . . . . . .  24
     5.3.  How to Encrypt and Decrypt for AEAD Algorithms  . . . . .  24
     5.4.  How to Encrypt and Decrypt for AE Algorithms  . . . . . .  27
   6.  MAC Objects . . . . . . . . . . . . . . . . . . . . . . . . .  28
     6.1.  MACed Message with Recipients . . . . . . . . . . . . . .  29
     6.2.  MACed Messages with Implicit Key  . . . . . . . . . . . .  30
     6.3.  How to Compute and Verify a MAC . . . . . . . . . . . . .  30
   7.  Key Objects . . . . . . . . . . . . . . . . . . . . . . . . .  32
     7.1.  COSE Key Common Parameters  . . . . . . . . . . . . . . .  32
   8.  Signature Algorithms  . . . . . . . . . . . . . . . . . . . .  35
   9.  Message Authentication Code (MAC) Algorithms  . . . . . . . .  36
   10. Content Encryption Algorithms . . . . . . . . . . . . . . . .  37
   11. Key Derivation Functions (KDFs) . . . . . . . . . . . . . . .  37
   12. Content Key Distribution Methods  . . . . . . . . . . . . . .  38
     12.1.  Direct Encryption  . . . . . . . . . . . . . . . . . . .  38
Show full document text