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

Brian Weis <bew.stds@gmail.com> Thu, 23 July 2026 19:19 UTC

Return-Path: <bew.stds@gmail.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 1469B11DA81A4 for <secdir@mail2.ietf.org>; Thu, 23 Jul 2026 12:19:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1784834390; bh=pvZj7SL+J71HtCYJ+icd3sQ9mDLrQGFwfkj+Tmg0PbQ=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=tVJ2fXDeTRq8GKuxSYKqYcuQcfxNrQnGtTVaztTjkxum5mlWFuxICs1d0ROFBBufR 0fHU7VUYa3qJ8sj2tdg8Cpr5ldvwYLj5lpJu2dMe0KujfIvvl+GXoTvZ8n61Cq3AIM 90MdcdZRIi23bY5MhDMOYejJljgfwbrHiKZOrknE=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 EnviWqADTaxc for <secdir@mail2.ietf.org>; Thu, 23 Jul 2026 12:19:49 -0700 (PDT)
Received: from mail-yx1-xb12a.google.com (mail-yx1-xb12a.google.com [IPv6:2607:f8b0:4864:20::b12a]) (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 3424C11DA811E for <secdir@ietf.org>; Thu, 23 Jul 2026 12:19:49 -0700 (PDT)
Received: by mail-yx1-xb12a.google.com with SMTP id 956f58d0204a3-664a5193741so177895d50.1 for <secdir@ietf.org>; Thu, 23 Jul 2026 12:19:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784834383; x=1785439183; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:content-type :message-id:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nlOfNh2LHp7O0OsYAHSDxLjAlyhvWEucXE/ZQGJMXTs=; b=RCRKYwXSPTYYn82qA7AuoafbAWG9dLB5ynOh6M4LvosnHctaHzxUeoqYx6mfgPm3pl Bzj8EzQFOGhA0uroQKlLLW/uumyNKVLt4W1MoRUZpcY116YjKnTPksjSWAYqbV72WSPm 6itCTAEhYhk+LOBl1WH0iuS4+/bRdBaBsZUkk7kHIW1pOE2jtBGvt6/b3HjyA9dI/Q12 we0SJQ+NbYyXOHQgratC142VQq//aVFtC+YT3wZiA0888MOgBa654HqoFmwbUSyiWP/a t34c2qdRbb1+CV+hg6hn2HW6O5oQl/U7pP17EVOyrBf8s9cvbthR0Emt95NWzg9U0G5A klGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784834383; x=1785439183; h=references:to:cc:in-reply-to:date:subject:mime-version:content-type :message-id:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nlOfNh2LHp7O0OsYAHSDxLjAlyhvWEucXE/ZQGJMXTs=; b=E9rr8l8DjWcqc9YUyidjNdRWpWt6uJvPk9SsqjiHM+dkaQVl7SauzgcuGUFwl+acb5 twk1HQXUtHqo/kF2t6EJ2dDdq90njwFmhKKgubnnBDWi4czcSLO979FxN2jpwJ/ha9Es hjgkAoGij7OseUni/YfyJX24BP+eA6VcUQP2PgL6Ecg0zW8BEJx5h4972ENmF/HOtKWP zuH/mNp08qM+e1edwNJxKjp3KRS5FaFrvRvxmoNSB86L71Y3eCCM83fRot0G8qfqa71y IBIMLJ0XIcz8fdbufp8W9Lsm0VXfrFbVnHgTA1SvpEqM5d2aTinWnOdrQIhdYTGEC3sf g+aA==
X-Forwarded-Encrypted: i=1; AHgh+Rq4MY6IxZi230iKsbc+G9Hy7cSuvIxKymzH6FCHmBxWIaAwK71oJy+yIIgGZdykFyltKtE5CFc=@ietf.org
X-Gm-Message-State: AOJu0YzEnVURu4yJwCxK0CQp4YvX7uXR1rwspECMfT8stzhCKFfjgFkY jQhSG3dCBMj35ZKE6sUMqoVT9CC47gQb7obNHv69B/TcQgqvXpbsS6dVZs/Rb1/N
X-Gm-Gg: AR+sD13pdrE8wO8y4zbTRf2VYEEEgo1HVSCnoq6hfu4/wsJ2nsnhxKgqChcbcWISYgG vhXO/l3skDP5BaYXATw9AinxIJl3+STgXop5m8uUTIhK8OE0Vr85Oh4Da6SnoYwpIegtSwI7jo0 xB8CpzL9R2z3qavZiMm+M0v1ja+TdDNeoKo5qQaCqI/dQ4PB019kMJpxxlGclal2A6RGylimTEd 8XiEzyAhjGkgyITxQ0I5DGQM+9oSuUTOb0gidiV3S7YdseeOT9NRaAQa/Wp1Sb2ujgGctAIpPLI j4iF2Gw11C38A2lx/ckoVeemcRF5gCTt9WtpIIZn/AIOZqrfp2Fk42HuiQ4ghQfcyz/ZICCITnD ka/nlSpUY/i6dLzb32A4lUN71ts7Otd0CoA6RTV97BanD65n1rCG+XZfbA/8Xz8qz5Zuhw7jokX NMX+0WrLHQ1bdICpqFizHMPFTtv4Y=
X-Received: by 2002:a05:690c:e3e8:b0:81d:45a:977b with SMTP id 00721157ae682-81f58505c6dmr4949787b3.4.1784834383100; Thu, 23 Jul 2026 12:19:43 -0700 (PDT)
Received: from smtpclient.apple ([2600:1700:65ab:5a00:24ce:afc0:cdbe:1f40]) by smtp.gmail.com with ESMTPSA id 00721157ae682-81f33d9fe18sm32763477b3.23.2026.07.23.12.19.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Jul 2026 12:19:42 -0700 (PDT)
From: Brian Weis <bew.stds@gmail.com>
Message-Id: <235414BD-0030-4337-972F-CC67C7222AFC@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_65A5D6BB-7716-4215-BF54-D98F7C0250CF"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\))
Date: Thu, 23 Jul 2026 12:19:30 -0700
In-Reply-To: <DM4PR84MB23102A6925DEAA71D32B2E13F4C22@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM>
To: "Bonica, Ron" <ronald.bonica@hpe.com>, Eric Biggers <ebiggers@google.com>
References: <178460966883.196860.10656020015618112794@dt-datatracker-d4d6ff9d9-fsx7d> <2925703C-A1C3-45EF-A60F-2FA7486C38A1@lurchi.franken.de> <DM4PR84MB23102A6925DEAA71D32B2E13F4C22@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM>
X-Mailer: Apple Mail (2.3826.700.81.1.4)
Message-ID-Hash: WTVYURK24Y5HK75TIH5UPCNGYNWWAOSC
X-Message-ID-Hash: WTVYURK24Y5HK75TIH5UPCNGYNWWAOSC
X-MailFrom: bew.stds@gmail.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] 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/yOXOS5NanUhnQJ_4hNjfxkSiuZA>
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>

Hi Ron & Eric,

Sorry, I”m a little behind the conversation here.

> On Jul 21, 2026, at 1:50 AM, Bonica, Ron <ronald.bonica@hpe.com> wrote:
> 
> Hello Brian,
> Thanks for your careful review.
> Two questions:
> 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.
That’s not necessary, I just wanted to point out previous work done for comparison. The only question here I believe is whether or not to use the HKDF method of producing a master key or not.

Eric makes a good point that the Master-Key can’t be assumed to have full entropy, and it’s hopeful to think an HKDF might mitigate that risk. But the use of a text-based key and a Salt of zeros doesn’t do much to help mitigate the risks over just HMAC-SHA-256. I don’t recall that there are any threats from an on-path or off-path attacker who can only observe the HMAC-SHA-256  tags, so I believe the main threat would be an attacker guessing the Master_key. HKDF doesn’t seem to mitigate that attack. Caveat: I’m not a cryptographer.

Eric mentions adding a requirement for higher-quality keys for these algorithms. If the WG feels that can be appropriately done in an algorithms draft rather than the TCPM specification itself, then that sounds like a good idea. Currently RFC 5925 only specifies the Master_Key as "A byte sequence”.

In any case, if the working group prefers the HKDF construction there’s nothing wrong with that choice.

> 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?

From a security perspective, there does not seem to be a need for the larger HMACs. That is, if the extended-options draft provided a 256-bit security level by included the entire 256-bit HMAC output, that would be sufficient for the foreseeable future. As such, that there is no real need for the HMAC outputs larger than 256-bits at the current time or expected to be needed for quite some time.

The main downsides of the higher-level HMACs are performance, as Eric has pointed out, and carrying the entire HMAC output on the wire, which would use more of the extended-options field (384 bits or 512 bits rather than 256 bits). Another consideration is that I would expect custom hardware (i.e., not using x86_64 or arm64) implementing TCP would be more likely to support HMAC-256 because if it’s wider usage than the -386 or -512 versions.

Another way to think about this whether the -386 and -512 HMAC security levels  are meaningful compared to the protection level and guess-ability of the Master-Keys. There’s not much point in specifying an algorithm with such a strong security level as HMAC-SHA-384 if the quality of the Master-Keys keys can’t be guaranteed to be indistinguishable from random. 

Thanks,
Brian

                                                                            Ron
>  
> 
> From: Michael Tuexen <michael.tuexen@lurchi.franken.de>
> Sent: Tuesday, July 21, 2026 10:18 AM
> To: Brian Weis <bew.stds@gmail.com>
> Cc: 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>
> Subject: Re: [tcpm] draft-ietf-tcpm-tcp-ao-algs-05 early Secdir review
>  
> > On 21. Jul 2026, at 06:54, Brian Weis via Datatracker <noreply@ietf.org> wrote:
> > 
> > Document: draft-ietf-tcpm-tcp-ao-algs
> > Title: Additional Cryptographic Algorithms For Use With TCP-AO
> > Reviewer: Brian Weis
> > Review result: Not Ready
> > 
> > I have reviewed this document as part of the security directorate's ongoing
> > effort to review all IETF documents being processed by the IESG. These comments
> > were written primarily for the benefit of the security area directors. Document
> > editors and WG chairs should treat these comments just like any other last call
> > comments.
> > 
> > Because this is an early review I’ve marked it “Not Ready”, but that is not a
> > pejorative marking.
> > 
> > This document proposes two new MACs for the TCP Authentication Option:
> > HMAC-SHA256-128 (using a HKDF-SHA256 KDF)  and KMAC256-128 (using KMAC256-KDF).
> > The two MACs return a 128-bit output due to the limited number of TCP option
> > octets. It is generally accepted that no more than 128-bits option octets are
> > available for TCP-AO.
> > 
> > The authors asked some questions as part of the early review.
> > 
> > Q1: (paraphrasing) Are these algorithms significantly better than the ones
> > originally specified in RFC 5926?
> > 
> > A: The algorithms in RFC 5926 produce a 96-bit output, which limits them to a
> > 96-bit security level. Since the proposed MAC/KDF pairs (considered to have
> > 256-bit security) are producing a 128-bit output, they have a 128-bit security
> > level and thus would be better than the original algorithms.
> > 
> > Q2: Would other algorithms with similar output length be significantly better
> > than the proposed ones?
> > 
> > A: I am not aware of any commonly used algorithms that are better.  Having an
> > algorithm based on SHA-256 is a good idea; I will note that a draft
> > (draft-nayak-tcp-sha2-03) was submitted to TCPM a few years ago that also
> > defined a HMAC-SHA256-128 method, although with a different KDF.
> > 
> > I have a couple of comments on the draft:
> > 
> > 1. Although allowed, it’s not clear to me that the two-step method using
> > HKDF-Extract() with a salt of zeros provides much additional value over using a
> > one-step traffic key derivation (e.g., as is done for RFC 5926). An all-zero
> > salt is satisfactory if the Master_Key is guaranteed to come from a good source
> > of entropy. However, when keys are manually entered into key tables (e.g., RFC
> > 7210), the master key cannot be guaranteed to have sufficient entropy.
> > 
> > A KDF method similar to RFC 5926 and draft-nayak-tcp-sha2-03 might be more
> > efficient and should have an equivalent level of security.
> > 
> > However, the all-zero salt is allowed, and there doesn’t seem to be any
> > particular downside of using HKDF other than the additional TCP processing for
> > HKDF-Extract().  You may have another specific reason for specifying using HKDF.
> > 
> > 2. It would be worth specifying which 128 bits of the HMAC-SHA256 output are used
> > for HMAC-SHA256-128. I’m sure you meant for the 256-bit output to be truncated
> > (i.e., use the first 128 bits) but the draft should be precise.
> > 
> > The authors also asked some questions regarding a related draft
> > (draft-bonica-tcpm-tcp-ao-long-algs), which assumes an available solution that
> > extends TCP Option space, thus allowing for a TCP-AO MAC algorithm with a larger
> > tag.
> > 
> > Q3: (paraphrasing) Draft-bonica-tcpm-tcp-ao-long-algs specifies HMAC-SHA384 and
> > KMAC-384 MACs. Are they significantly better than the ones proposed in
> > draft-ietf-tcpm-tcp-ao-algs-05?
> > 
> > A: Specifying a TCP-AO algorithm for 384-bit algorithms is sufficiently  better,
> > and the 384-bit tags defined in the the long-algs draft should result in a
> > security level of 384 which is much greater than 128.
> > 
> > However, it’s not clear that there is any need for this level of security in
> > TCP-AO when no algorithm specifying a 256-bit security level has been specified.
> > 
> > One alternative would be to define the same algorithms as in
> > draft-ietf-tcpm-tcp-ao-algs but with an output of 256 bits (i.e., not truncating
> > the tags), which should give 256 bit security. NIST has not specified a timeframe
> > in which they believe 256-bit security will be deprecated.
> > 
> > Q4: Would other algorithms with similar output length be significantly better
> > than the proposed ones?
> > 
> > A: None of which I am aware.
> > 
> > Q5: What is the timeline for switching to longer MACs like in
> > draft-bonica-tcpm-tcp-ao-long-algs? Is there an immediate need, for example due
> > to PQ.
> > 
> > A: I know of no timeline specifying a need beyond 256-bit security.
> > Post-quantum crypto is not as dire a threat to hash functions as some other
> > cryptographic algorithms, and it seems that hash functions with a 256-bit key
> > are safe for now. Having said that, some government organizations are
> > considering 384-bit keys for some application, but I wouldn’t expect threats to
> > TCP-AO to warrant that level of security for some time.
> Hi Brian,
> 
> thank you very much for providing the review in time!
> This way your review can be used in the discussion at the WG meeting
> later this week.
> 
> Best regards
> Michael
> > 
> > 
> > _______________________________________________
> > tcpm mailing list -- tcpm@ietf.org
> > To unsubscribe send an email to tcpm-leave@ietf.org