Re: [babel] Babel-MAC: Blake2s is 128-bits by default

Toke Høiland-Jørgensen <toke@toke.dk> Wed, 18 November 2020 10:57 UTC

Return-Path: <toke@toke.dk>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C763C3A17AC for <babel@ietfa.amsl.com>; Wed, 18 Nov 2020 02:57:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=toke.dk
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 yNPmZKdENLCs for <babel@ietfa.amsl.com>; Wed, 18 Nov 2020 02:57:25 -0800 (PST)
Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) (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 A8DCA3A17AB for <babel@ietf.org>; Wed, 18 Nov 2020 02:57:24 -0800 (PST)
From: Toke Høiland-Jørgensen <toke@toke.dk>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1605697041; bh=nBNu4GdvBjY3MUOWHhbXjV2rVR1XuQ8r1a7Z8+W3UFM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XLvLfKzoK53J/gVgX9xvRKC5nWfhqv0e9a9PpngMWErkZNfcNJQvJdPuPxjpcwLcu vTf7Zs9gGU3sjtrWfj8CmqDKG9vp3/z8OAsQhYVUeyYVDMzwA/n4RJIEjX9dNoOAKm GsPXKPWUwpCdDp3t+r+N2Gg3izpTBk5FGAHa/L0u4cpJ7XxDZxtqChCyKtfYRBWLfp 8yqPY+Y3bjsRGiJsmMZnTEoYmQoP8x+Z0F53aNgfyaHzjBN4au+2ML3oh/dJxlc0Bl UuVHog6ZdYFZbXr5C+qLg9Q66mU0LpNPazVTqqpGYLZc33cPBGHT17NulTJd4eEB7N bwvQQu2EwsTHg==
To: Juliusz Chroboczek <jch@irif.fr>
Cc: babel@ietf.org, Valery Smyslov <valery@smyslov.net>
In-Reply-To: <878sazh7ge.wl-jch@irif.fr>
References: <87d00qungk.wl-jch@irif.fr> <87h7q2f6a2.fsf@toke.dk> <87o8jya4jz.wl-jch@irif.fr> <87wnyl4dgi.fsf@toke.dk> <878sazh7ge.wl-jch@irif.fr>
Date: Wed, 18 Nov 2020 11:57:21 +0100
X-Clacks-Overhead: GNU Terry Pratchett
Message-ID: <87o8jvylta.fsf@toke.dk>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/LauTbNMMWSl24EhxMUOZUfAp5ag>
Subject: Re: [babel] Babel-MAC: Blake2s is 128-bits by default
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Nov 2020 10:57:28 -0000

Juliusz Chroboczek <jch@irif.fr> writes:

>>> Toke and Dave originally suggested adding Blake2s to Babel-HMAC [...]
>
>> Note sure that I quite agree with your history here,
>
> It's quite likely I got it wrong, sorry if that's the case.
>
>> I'm not actually opposed to 128-bit signatures per se, although I would
>> be more comfortable if someone with a crypto background could weigh in
>> with an opinion on this.
>
> Valery, perhaps you could help?
>
>>> 1. Toke agrees to switch to 128-bit Blake2s signatures;
>
>> I think what would happen is that Bird would support both.
>
> Ok.
>
> You didn't address the most important question: do you agree with modifying
> the RFC-to-be so that the SHOULD applies to 128-bit signatures, and
> clarifying the information model that the "Blake2s" algorithm implies
> 128-bit signatures?

I asked my go-to crypto guy who assured me that 128 bits is sufficient
for this use case. So no objections from me :)

(He also helpfully pointed out that I was completely wrong to assert
that Blake2s just truncates the hash if it's configured for shorter
output; so much for my C reading comprehension skills :/)

-Toke