PASETO: Platform-Agnostic SEcurity TOkens
draft-paragon-paseto-rfc-00

Document Type Active Internet-Draft (individual)
Last updated 2018-04-19
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)
(No Working Group)                                        S. Arciszewski
Internet-Draft                            Paragon Initiative Enterprises
Intended status: Informational                              S. Haussmann
Expires: October 21, 2018               Rensselaer Polytechnic Institute
                                                          April 19, 2018

               PASETO: Platform-Agnostic SEcurity TOkens
                      draft-paragon-paseto-rfc-00

Abstract

   Platform-Agnostic SEcurity TOkens (PASETOs) provide a
   cryptographically secure, compact, and URL-safe representation of
   claims that may be transferred between two parties.  The claims are
   encoded in JavaScript Object Notation (JSON), version-tagged, and
   either encrypted using shared-key cryptography or signed using
   public-key cryptography.

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 21, 2018.

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
   (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

Arciszewski & Haussmann Expires October 21, 2018                [Page 1]
Internet-Draft                                                April 2018

   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Difference Between PASETO and JOSE  . . . . . . . . . . .   3
     1.2.  Notation and Conventions  . . . . . . . . . . . . . . . .   3
   2.  PASETO Message Format . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Base64 Encoding . . . . . . . . . . . . . . . . . . . . .   4
     2.2.  Authentication Padding  . . . . . . . . . . . . . . . . .   4
       2.2.1.  PAE Definition  . . . . . . . . . . . . . . . . . . .   5
   3.  Protocol Versions . . . . . . . . . . . . . . . . . . . . . .   6
     3.1.  PASETO Protocol Guidelines  . . . . . . . . . . . . . . .   6
   4.  PASETO Protocol Version v1  . . . . . . . . . . . . . . . . .   7
     4.1.  v1.local  . . . . . . . . . . . . . . . . . . . . . . . .   7
     4.2.  v1.public . . . . . . . . . . . . . . . . . . . . . . . .   8
     4.3.  Version v1 Algorithms . . . . . . . . . . . . . . . . . .   8
       4.3.1.  v1.GetNonce . . . . . . . . . . . . . . . . . . . . .   8
       4.3.2.  v1.Encrypt  . . . . . . . . . . . . . . . . . . . . .   8
       4.3.3.  v1.Decrypt  . . . . . . . . . . . . . . . . . . . . .   9
       4.3.4.  v1.Sign . . . . . . . . . . . . . . . . . . . . . . .  11
       4.3.5.  v1.Verify . . . . . . . . . . . . . . . . . . . . . .  12
   5.  PASETO Protocol Version v2  . . . . . . . . . . . . . . . . .  13
     5.1.  v2.local  . . . . . . . . . . . . . . . . . . . . . . . .  13
     5.2.  v2.public . . . . . . . . . . . . . . . . . . . . . . . .  13
     5.3.  Version v2 Algorithms . . . . . . . . . . . . . . . . . .  13
       5.3.1.  v2.Encrypt  . . . . . . . . . . . . . . . . . . . . .  13
       5.3.2.  v2.Decrypt  . . . . . . . . . . . . . . . . . . . . .  14
       5.3.3.  v2.Sign . . . . . . . . . . . . . . . . . . . . . . .  15
       5.3.4.  v2.Verify . . . . . . . . . . . . . . . . . . . . . .  16
   6.  Payload Processing  . . . . . . . . . . . . . . . . . . . . .  16
     6.1.  Registered Claims . . . . . . . . . . . . . . . . . . . .  17
       6.1.1.  Key-ID Support  . . . . . . . . . . . . . . . . . . .  17
   7.  AEAD_XChaCha20_Poly1305 . . . . . . . . . . . . . . . . . . .  18
     7.1.  Motivation for XChaCha20-Poly1305 . . . . . . . . . . . .  19
     7.2.  HChaCha20 . . . . . . . . . . . . . . . . . . . . . . . .  19
       7.2.1.  Test Vector for the HChaCha20 Block Function  . . . .  20
   8.  Intended Use-Cases for PASETO . . . . . . . . . . . . . . . .  20
   9.  Security Considerations . . . . . . . . . . . . . . . . . . .  21
   10. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  22
Show full document text