[secdir] Re: [tcpm] Re: draft-ietf-tcpm-tcp-ao-algs-05 early Secdir review

Eric Biggers <ebiggers@google.com> Tue, 21 July 2026 17:09 UTC

Return-Path: <ebiggers@google.com>
X-Original-To: secdir@mail2.ietf.org
Delivered-To: secdir@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 0C8AD11B9A8F9 for <secdir@mail2.ietf.org>; Tue, 21 Jul 2026 10:09:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784653756; bh=6Rlj5vaYNiTQYfLthO/zmkT6B73w3t/MUIPhJmwm2ps=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ea6rhUEasQpqHUiloI29XzaIHk5F5y/aBCj0WYUhBoEvA0pKa9iqsy4xiIvrqG19a Tg0ypiJeOHh3GV7MjqK94eUMO8NzEYJmBbplWSWft8sAweJuCMMn5jWKpBipWQTLyC UlcqGcd5wGXGOoy5ZNmK/ATeTz7mKYvpfGUxaK7A=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -17.601
X-Spam-Level:
X-Spam-Status: No, score=-17.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M2Nif2nBWprt for <secdir@mail2.ietf.org>; Tue, 21 Jul 2026 10:09:15 -0700 (PDT)
Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 9E4C511B9A8CB for <secdir@ietf.org>; Tue, 21 Jul 2026 10:09:15 -0700 (PDT)
Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-c966b9ee9cbso6740719a12.1 for <secdir@ietf.org>; Tue, 21 Jul 2026 10:09:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784653749; x=1785258549; darn=ietf.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=mNaeUwCVqMqGj6R8rvrOWSk1p0UB6sEmrJIXN/Ou7fk=; b=MH9EiFRPudCuuOuxtyHrTj1XuCHOaLVNuUr1/02NOf7HgMxKEkV671hzHOqnYod5L5 yGD/ArBOyG/8yj4gFJOd2jpgsiIyDaYix3AcVlyMhHHhoQgr+E1ydF2rFjL+c9AHiYKr WpuDTP5PVDwQeIF05ZW7zYCltU3BdyxA5yBeUlwiDp2uN7SoVLQ94uruC2MjFmiOZ8oM t7ctabCcebUk8mgTqAOduqcjVsVyC4qnQ1UXYX3AzGmbheSpVvUjxa0ZwqIRlqSJFwO7 K4Wi50XXp70EVBo/UyQXSHKVYC4EeWZ2WG3YDcRma8HvV8xycDVKLKDXEUvyMdMW4gyE MM+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784653749; x=1785258549; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=mNaeUwCVqMq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e8lTO4ZYNqHujwX/wv0OuuOX1HqrqVXSxaDlKPMk65tykZTE10UHOw==
X-Received: by 2002:a05:6a00:9506:b0:848:31fb:43d9 with SMTP id d2e1a72fcca58-84c29505c50mr19081040b3a.45.1784653748219; Tue, 21 Jul 2026 10:09:08 -0700 (PDT)
Received: from google.com (199.174.125.34.bc.googleusercontent.com. [34.125.174.199]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84e1760025esm24713b3a.57.2026.07.21.10.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2026 10:09:07 -0700 (PDT)
Date: Tue, 21 Jul 2026 17:09:04 +0000
From: Eric Biggers <ebiggers@google.com>
To: "Bonica, Ron" <ronald.bonica=40hpe.com@dmarc.ietf.org>
Message-ID: <20260721170904.GA3237852@google.com>
References: <178460966883.196860.10656020015618112794@dt-datatracker-d4d6ff9d9-fsx7d> <2925703C-A1C3-45EF-A60F-2FA7486C38A1@lurchi.franken.de> <DM4PR84MB23102A6925DEAA71D32B2E13F4C22@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <DM4PR84MB23102A6925DEAA71D32B2E13F4C22@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM>
Message-ID-Hash: 5FWB4MN4M4SWYN7EECYNBA443OQ7HL3P
X-Message-ID-Hash: 5FWB4MN4M4SWYN7EECYNBA443OQ7HL3P
X-MailFrom: ebiggers@google.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-secdir.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Michael Tuexen <michael.tuexen@lurchi.franken.de>, "secdir@ietf.org" <secdir@ietf.org>, "draft-ietf-tcpm-tcp-ao-algs.all@ietf.org" <draft-ietf-tcpm-tcp-ao-algs.all@ietf.org>, "tcpm@ietf.org" <tcpm@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [secdir] Re: [tcpm] Re: draft-ietf-tcpm-tcp-ao-algs-05 early Secdir review
List-Id: Security Area Directorate <secdir.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/JMj05xcgBQCCb3XMyD5YrchPZeQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Owner: <mailto:secdir-owner@ietf.org>
List-Post: <mailto:secdir@ietf.org>
List-Subscribe: <mailto:secdir-join@ietf.org>
List-Unsubscribe: <mailto:secdir-leave@ietf.org>

On Tue, Jul 21, 2026 at 08:50:29AM +0000, Bonica, Ron wrote:
> Hello Brian,
> Thanks for your careful review.
> Two questions:
> 
>   1.
> Do you recommend that we replace the contents of draft-ietf-tcpm-tcp-ao-algs-05, Section 3.1.1 with the contents draft-nayak-tcp-sha2-03, Section 3.1.1? Should we also replace the section title? If so, I would be happy to do that.

FYI, earlier I recommended the separate entropy extraction step (which
was concretely implemented as HKDF-SHA256-Extract + HKDF-SHA256-Expand)
because TCP-AO explicitly allows the Master_Key to be an ASCII string.

TCP-AO's support for ASCII strings was a mistake in my opinion, but it's
perhaps too late to fix.  I am however recommending that the new RFC
require that the Master_Key length be at least 256 bits and give clearer
guidance about choosing Master_Keys
(https://mailarchive.ietf.org/arch/msg/tcpm/EG9q7Eylk2G09nMUNJ_GkYwxGWs/)
especially emphasizing that they should be high-entropy keys rather than
human-readable passwords.

Regardless, considering that it could be an ASCII string, the Master_Key
might not have full entropy for its length, and the entropy might not be
distributed uniformly.  An entropy extraction step is the usual way to
handle that and turn it into a proper cryptographic key (though
sufficient entropy still needs to be present).

The caveat here is that in practice HMAC seems to act as both an entropy
extractor and expander simultaneously (assuming a non-adversarial
entropy source, which has to be assumed here anyway, since no
independent salt is available).  So in practice, just doing the one-step
HMAC is *probably* fine.  But as I've said before, I'm just concerned
that this is an informal argument and it effectively amounts to a
criticism of the standard KDF design practice.  Standard security proofs
for HMAC assume the key is chosen uniformly at random, which isn't the
case with an ASCII string.

If you want to do it anyway as an optimization and for consistency with
how TCP-AO uses HMAC-SHA1, I recommend finding some citations for the
approach of using one-step HMAC as an extract+expand KDF.

Alternatively, the support for ASCII strings could be reconsidered...
Maybe it's not too late to fix?  Note that support for ASCII strings in
the configuration files of TCP-AO software does *not* require that the
protocol itself support ASCII strings.  The hex decoding, base64
decoding, etc. can be a user interface implementation detail, with the
actual TCP-AO protocol implementation being passed a binary key.

>   2.  If we implement HMAC-SHA256 instead of HMAC-SHA384, TCP-AO will still consume 36 bytes, leaving only 4 bytes for other options. So, we will still need to implement draft-bonica-tcpm-extended-options. Given that, should we implement hmac-sha256 or skip ahead to hmac-sha384 or even hmac-sha512?

There's no cryptographic need for a 384-bit or a 512-bit MAC, though
sometimes people like to use HMAC-SHA512 anyway for the (perceived)
higher internal security strength.  Has anyone asked for that here,
though?

- Eric