Re: [Cfrg] KangarooTwelve draft has been updated to 01

Benoît Viguier <b.viguier@science.ru.nl> Mon, 22 January 2018 16:00 UTC

Return-Path: <b.viguier@science.ru.nl>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 217F012778E for <cfrg@ietfa.amsl.com>; Mon, 22 Jan 2018 08:00:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.23
X-Spam-Level:
X-Spam-Status: No, score=-4.23 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R_CTGEBVaIfx for <cfrg@ietfa.amsl.com>; Mon, 22 Jan 2018 08:00:16 -0800 (PST)
Received: from smtp1.science.ru.nl (smtp1.science.ru.nl [131.174.16.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EE97612783A for <cfrg@irtf.org>; Mon, 22 Jan 2018 08:00:15 -0800 (PST)
Received: from localhost.localdomain (ip-145-116-133-236.wlan-int.ru.nl [145.116.133.236]) (authen=benoit) by smtp1.science.ru.nl (8.14.4/5.32) with ESMTP id w0MG0DPL014233; Mon, 22 Jan 2018 17:00:13 +0100
To: David Wong <davidwong.crypto@gmail.com>
Cc: cfrg@irtf.org
References: <4cce37d5-e87c-f23d-c1ab-14491a4d764c@science.ru.nl> <878e3a08-572a-1fa1-f9f0-0b10f94cc1f0@science.ru.nl> <CAK3aN2omFY=LtG5QLCv-CvdoCXxy33aPD_U2yrO7Fe-BgZ37vg@mail.gmail.com>
From: Benoît Viguier <b.viguier@science.ru.nl>
Message-ID: <2f255eea-903e-93de-7dbb-b1a83f939f6e@science.ru.nl>
Date: Mon, 22 Jan 2018 17:00:13 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
MIME-Version: 1.0
In-Reply-To: <CAK3aN2omFY=LtG5QLCv-CvdoCXxy33aPD_U2yrO7Fe-BgZ37vg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------DC382C686A083CDC1EE846D5"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/P3UQziS9cikamCqQn_w4scWl088>
Subject: Re: [Cfrg] KangarooTwelve draft has been updated to 01
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jan 2018 16:00:18 -0000

Hi David,

Using their names directly as variables breaks the compactness of the 
writing. cf as follows:

S = M || C || length_encode( |C| ) KangarooTwelve( M, C, L ) = F( 
FinalNode||`07`, L ) KangarooTwelve( M, C, L ) = F( FinalNode||`06`, L )

Also with the same arguments we should expend L.
Also the following text is quite explicit about the meaning of M and C :

KangarooTwelve is an eXtendable Output Function (XOF). It takes as an 
input a couple of byte-strings (M, C) and a positive integer L where M 
byte-string, is the Message and C byte-string, is a OPTIONAL 
Customization string and L positive integer, the number of output bytes 
requested.

In the end those are mainly editorial details.

On 01/22/2018 04:20 PM, David Wong wrote:
>> While the notation X, S by NIST SP - 800-185, I find Message and
>> Customization string easier to remember:
>> variable names should be able to give the reader an idea of what they are
>> about. Also NIST FIPS 180-4 and NIST FIPS 202 uses M for message. However if
>> a majority of people are in favor of (X,S), I don't mind switching for this
>> notation.
> By the way, why not giving them actual names like "custom_string" and "message"?
>
> David

-- 
Kind regards,

Benoît Viguier
Software Engineer - PhD Student | Cryptography & Formal Methods
Radboud University | Mercator 1, room 03.17, Toernooiveld 212
6525 EC Nijmegen, the Netherlands | www.viguier.nl