The BLAKE2 Cryptographic Hash and MAC
draft-saarinen-blake2-03

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Authors Markku-Juhani Saarinen  , Jean-Philippe Aumasson 
Last updated 2015-04-25
Stream ISE
Intended RFC status Informational
Formats pdf htmlized (tools) htmlized bibtex
IETF conflict review conflict-review-saarinen-blake2
Stream ISE state Finding Reviewers
Consensus Boilerplate Unknown
Document shepherd Adrian Farrel
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to "Nevil Brownlee" <rfc-ise@rfc-editor.org>
Internet Engineering Task Force                       M-J. Saarinen, Ed.
Internet-Draft                                    Independent Consultant
Intended status: Informational                             J-P. Aumasson
Expires: October 27, 2015                              Kudelski Security
                                                          April 25, 2015

                 The BLAKE2 Cryptographic Hash and MAC
                        draft-saarinen-blake2-03

Abstract

   This document describes the cryptographic hash function BLAKE2,
   making the algorithm specification and C source code conveniently
   available to the Internet community.  BLAKE2 comes in two main
   flavors: BLAKE2b is optimized for 64-bit platforms, and BLAKE2s for
   smaller architectures.  BLAKE2 can be directly keyed, making it
   functionally equivalent to a Message Authentication Code (MAC).

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

Copyright Notice

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

Saarinen & Aumasson     Expires October 27, 2015                [Page 1]
Internet-Draft    The BLAKE2 Cryptographic Hash and MAC       April 2015

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

Table of Contents

   1.  Introduction and Terminology  . . . . . . . . . . . . . . . .   2
   2.  Conventions, Variables, and Constants . . . . . . . . . . . .   3
     2.1.  Parameters  . . . . . . . . . . . . . . . . . . . . . . .   3
     2.2.  Other Constants and Variables . . . . . . . . . . . . . .   4
     2.3.  Arithmetic Notation . . . . . . . . . . . . . . . . . . .   4
     2.4.  Little-Endian Interpretation of Words as Byte Sequences .   4
     2.5.  Parameter Block . . . . . . . . . . . . . . . . . . . . .   5
     2.6.  Initialization Vector . . . . . . . . . . . . . . . . . .   5
     2.7.  Message Schedule SIGMA  . . . . . . . . . . . . . . . . .   6
   3.  BLAKE2 Processing . . . . . . . . . . . . . . . . . . . . . .   6
     3.1.  Mixing Function G . . . . . . . . . . . . . . . . . . . .   6
     3.2.  Compression Function F  . . . . . . . . . . . . . . . . .   6
     3.3.  Padding data and Computing a BLAKE2 Digest  . . . . . . .   8
   4.  Standard Parameter Sets and Algorithm Identifiers . . . . . .   9
   5.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  10
   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  10
   7.  Security Considerations . . . . . . . . . . . . . . . . . . .  10
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  10
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  10
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  10
   Appendix A.  BLAKE2b Implementation C Source  . . . . . . . . . .  11
     A.1.  blake2b.h . . . . . . . . . . . . . . . . . . . . . . . .  11
     A.2.  blake2b.c . . . . . . . . . . . . . . . . . . . . . . . .  12
   Appendix B.  BLAKE2s Implementation C Source  . . . . . . . . . .  16
     B.1.  blake2s.h . . . . . . . . . . . . . . . . . . . . . . . .  16
     B.2.  blake2s.c . . . . . . . . . . . . . . . . . . . . . . . .  17
   Appendix C.  BLAKE2b and BLAKE2s Self Test Module C Source  . . .  20
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  24

1.  Introduction and Terminology

   The [BLAKE2] cryptographic hash function was designed by Jean-
   Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn, and Christian
   Winnerlein.

   BLAKE2 comes in two basic flavors:

   o  BLAKE2b (or just BLAKE2) is optimized for 64-bit platforms and
      produces digests of any size between 1 and 64 bytes.

   o  BLAKE2s is optimized for 8- to 32-bit platforms, and produces
      digests of any size between 1 and 32 bytes.
Show full document text