Re: [babel] babel-hmac: key requirements

"STARK, BARBARA H" <bs7652@att.com> Wed, 16 January 2019 15:46 UTC

Return-Path: <bs7652@att.com>
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 5BC30130E74 for <babel@ietfa.amsl.com>; Wed, 16 Jan 2019 07:46:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.601
X-Spam-Level:
X-Spam-Status: No, score=-0.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_DYNAMIC=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no 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 uHL9m9mE1-3B for <babel@ietfa.amsl.com>; Wed, 16 Jan 2019 07:46:08 -0800 (PST)
Received: from mx0a-00191d01.pphosted.com (mx0b-00191d01.pphosted.com [67.231.157.136]) (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 21B0E130DE4 for <babel@ietf.org>; Wed, 16 Jan 2019 07:46:08 -0800 (PST)
Received: from pps.filterd (m0049462.ppops.net [127.0.0.1]) by m0049462.ppops.net-00191d01. (8.16.0.22/8.16.0.22) with SMTP id x0GFj4kb016873; Wed, 16 Jan 2019 10:46:07 -0500
Received: from alpi154.enaf.aldc.att.com (sbcsmtp6.sbc.com [144.160.229.23]) by m0049462.ppops.net-00191d01. with ESMTP id 2q248g4v76-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Jan 2019 10:46:06 -0500
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id x0GFk58t011515; Wed, 16 Jan 2019 10:46:06 -0500
Received: from zlp30485.vci.att.com (zlp30485.vci.att.com [135.47.91.178]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id x0GFk0R3011261; Wed, 16 Jan 2019 10:46:02 -0500
Received: from zlp30485.vci.att.com (zlp30485.vci.att.com [127.0.0.1]) by zlp30485.vci.att.com (Service) with ESMTP id 492CB402FFC6; Wed, 16 Jan 2019 15:46:00 +0000 (GMT)
Received: from GAALPA1MSGHUBAH.ITServices.sbc.com (unknown [130.8.218.157]) by zlp30485.vci.att.com (Service) with ESMTPS id 36B28402FFC5; Wed, 16 Jan 2019 15:46:00 +0000 (GMT)
Received: from GAALPA1MSGUSRBF.ITServices.sbc.com ([169.254.5.203]) by GAALPA1MSGHUBAH.ITServices.sbc.com ([130.8.218.157]) with mapi id 14.03.0415.000; Wed, 16 Jan 2019 10:45:59 -0500
From: "STARK, BARBARA H" <bs7652@att.com>
To: 'Juliusz Chroboczek' <jch@irif.fr>, Toke Høiland-Jørgensen <toke@toke.dk>
CC: Babel at IETF <babel@ietf.org>
Thread-Topic: [babel] babel-hmac: key requirements
Thread-Index: AdSpKuuhWh3uIPf3TSyfFq2fmw6nrABcdjuAAFt168AASoEFAAAIqZ0A///Z2YCAAA4wAP//SZFg
Date: Wed, 16 Jan 2019 15:45:59 +0000
Message-ID: <2D09D61DDFA73D4C884805CC7865E6114DF9F26C@GAALPA1MSGUSRBF.ITServices.sbc.com>
References: <2D09D61DDFA73D4C884805CC7865E6114DF96321@GAALPA1MSGUSRBF.ITServices.sbc.com> <874laevyy4.wl-jch@irif.fr> <2D09D61DDFA73D4C884805CC7865E6114DF9BFAF@GAALPA1MSGUSRBF.ITServices.sbc.com> <87o98hbt9j.wl-jch@irif.fr> <2D09D61DDFA73D4C884805CC7865E6114DF9E3B4@GAALPA1MSGUSRBF.ITServices.sbc.com> <87k1j5ob7q.fsf@toke.dk> <87k1j5blr3.wl-jch@irif.fr>
In-Reply-To: <87k1j5blr3.wl-jch@irif.fr>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.70.220.117]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-01-16_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=964 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901160128
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/Xwf8KUirKeUtieL2iHjLzGaeXdw>
Subject: Re: [babel] babel-hmac: key requirements
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, 16 Jan 2019 15:46:09 -0000

I don't seem to be communicating well what I'm looking for. An informative appendix doesn't solve my problem. The advice is nice, but it's not what I'm needing.
Let me try saying this differently.

If it weren't for OSPF defining 2 different keys (the entered key and the cryptographic key) and the HMAC RFC 2104 defining the jey as something of variable length that gets hashed when it's longer than the block size, I/we wouldn't have a problem. But because of those specs (and RFC 2104 is normatively referenced), the term "HMAC key" is ambiguous. A careful reader might not see it as ambiguous and understand what's implied by the text; but all readers aren't careful.

Therefore, I would like for babel-hmac to resolve this ambiguity by providing a prominent (hard to miss) definition of "HMAC key".

Here's another suggestion for how this might be achieved.
Insert a section under Data Structures of:

## The HMAC Key
The HMAC key is a string of bytes the length of which is exactly the block size of the HMAC algorithm being used. Note this is different  from the [RFC2104] definition.

----------------------------
A second problem I have (which doesn't need to be resolved by text in babel-hmac, but can be dealt with in information-model) is the format to use for supplying an input that becomes an HMAC key. I think we're somewhere between binary and hex at this point. I don't care which, but I need to choose one or the other.

Barbara