Re: [babel] hmac info model elements

Toke Høiland-Jørgensen <toke@toke.dk> Mon, 07 January 2019 16:35 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 864BF130F3A for <babel@ietfa.amsl.com>; Mon, 7 Jan 2019 08:35:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-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 aX7RPYHfhgoI for <babel@ietfa.amsl.com>; Mon, 7 Jan 2019 08:35:40 -0800 (PST)
Received: from mail.toke.dk (mail.toke.dk [52.28.52.200]) (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 B6AD2130F59 for <babel@ietf.org>; Mon, 7 Jan 2019 08:35:40 -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=1546878937; bh=W3HGZCwLr7cs9Ww6XcGdMD1PyrBML8o89aj8CNGwXlA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AnoPBfT9tzAJUM+S09ZZa2EdG0V/A+dm9G1ZDw5qy366qwh8qsodJelBpiXnDCnk1 jJtxqxOgWj1dwoHcF5F5RfuffM0T7xQclnJACjby/SNA9olnqguQXT6xI9QEOGE3PS OwmToeEBxj/0m9epO+oZ33LmkuegIXlmnsOtnSHkh3tvt3GTLI05H3SXJ92m0jhkvn SAxkiPZKzP3XBydbgWAWVND2CgC5MPY1QXsacXcN5y/jac5KOimlB6FIt7NnX5rcDk ZHFrN/fwzMj33FfFr8NXVe4XkBfyJa2Od0CVG58h9DkHwsQiJlrRsZc68fyaUqKSFc QEgoYkURQAprg==
To: "STARK, BARBARA H" <bs7652@att.com>, 'Juliusz Chroboczek' <jch@irif.fr>
Cc: 'Mahesh Jethanandani' <mjethanandani@gmail.com>, Babel at IETF <babel@ietf.org>
In-Reply-To: <2D09D61DDFA73D4C884805CC7865E6114DF8669E@GAALPA1MSGUSRBF.ITServices.sbc.com>
References: <2D09D61DDFA73D4C884805CC7865E6114DF7EECB@GAALPA1MSGUSRBF.ITServices.sbc.com> <91CABBA9-DFC0-48C5-9A36-E2B12FC376D9@gmail.com> <2D09D61DDFA73D4C884805CC7865E6114DF8354B@GAALPA1MSGUSRBF.ITServices.sbc.com> <87tvio2i9l.wl-jch@irif.fr> <2D09D61DDFA73D4C884805CC7865E6114DF8669E@GAALPA1MSGUSRBF.ITServices.sbc.com>
Date: Mon, 07 Jan 2019 17:35:36 +0100
X-Clacks-Overhead: GNU Terry Pratchett
Message-ID: <87k1jgwhlz.fsf@toke.dk>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/fkHWgtGl1Rl6WifhzrMxHJ29NWI>
Subject: Re: [babel] hmac info model elements
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: Mon, 07 Jan 2019 16:35:50 -0000

"STARK, BARBARA H" <bs7652@att.com> writes:

> Toke said: "Bird uses an unencoded string..." 
> <bhs> I'm not sure what "unencoded" means here? But this sounds like
> maybe the entered string is a "passphrase" / PSK, like what's used for
> Wi-Fi, which is then used to derive the HMAC key using Unicode
> encoding?

Nope, no derivation, just the raw ASCII bytes from the string used as an
HMAC key, zero-padded to the block size. Unless the supplied ASCII
string is longer than the block size, in which case it is hashed
first.

However, looking at the code again, this is actually controlled by the
protocol, so if we were to specify something different for Babel, that
would be doable as well... And I think agreeing on a mechanism would
probably be a good idea to ensure interoperability.

-Toke