| Internet-Draft | tcp-ao-algs | November 2026 |
| Li, et al. | Expires 27 May 2027 | [Page] |
RFC5926 creates a registry of cryptographic algorithms that can be used with TCP-AO. This document expands that registry, adding two Message Authentication Code (MAC) algorithms, HMAC-SHA256 and KMAC256.¶
The MAC algorithms described by this document produce 256-bit (i.e., 32-byte) MACs. When 32-byte MACs are encoded in TCP-AO, the TCP-AO consumes 36 of the 40 bytes available for TCP options.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 27 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
[RFC5926] creates a registry of cryptographic algorithms that can be used with TCP-AO [RFC5925]. This document expands that registry, adding two Message Authentication Code (MAC) algorithms, HMAC-SHA256 and KMAC256.¶
The MAC algorithms described by this document produce 256-bit (i.e., 32-byte) MACs. When 32-byte MACs are encoded in TCP-AO, the TCP-AO consumes 36 of the 40 bytes available for TCP options.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
[RFC5925] requires the following cryptographic algorithm classes:¶
Section 3.1 of this document addresses KDFs while Section 3.2 addresses MAC algorithms.¶
A KDF converts Input Keying Material (IKM) into cryptographically secure Output Keying Material (OKM). HMAC-SHA256 uses HKDF-SHA256 while KMAC256 uses KMAC256-KDF, which is based on the one-step key-derivation function in [DOI.10.6028_NIST.SP.800-56Cr2]. [I-D.ietf-tcpm-tcp-ao-algs] describes both of these.¶
Each MAC algorithm defined for TCP-AO has the following fixed elements as part of its definition:¶
KDF_alg is the name of the KDF algorithm used to generate the Traffic_Key.¶
Key_Length is the length of the Traffic_Key used in this MAC, measured in bits. In this document, the Key_Length is always 256 bits.¶
MAC_Length is the desired length of the MAC to be produced by the algorithm. In this document, the MAC_Length is always 256 bits.¶
MACs computed for TCP-AO have the following interface:¶
MAC = MAC_alg(Traffic_Key, Message)¶
where:¶
MAC is the value to be encoded in TCP-AO.¶
MAC_alg is the MAC algorithm used.¶
Traffic_Key is the result of the KDF.¶
Message is the message to be authenticated, as specified in Section 5.1 of [RFC5925].¶
The three fixed elements for HMAC-SHA256 are:¶
In the interface:¶
MAC = MAC_alg(Traffic_Key, Message)¶
HMAC-SHA256 for TCP-AO has the following values:¶
The three fixed elements for KMAC256 are:¶
In the interface:¶
MAC = MAC_alg(Traffic_Key, Message)¶
KMAC256 takes more arguments than the generic two-argument interface above. In the notation of [DOI.10.6028_NIST.SP.800-185], KMAC256 for TCP-AO is:¶
MAC = KMAC256(K = Traffic_Key, X = Message, L = 256, S = "")¶
KMAC256 for TCP-AO has the following values:¶
The MAC algorithms described by this document produce 256-bit (i.e., 32-byte) MACs. When 32-byte MACs are encoded in TCP-AO, the TCP-AO consumes 36 of the 40 bytes available for TCP options.¶
TCP implementations MUST allocate TCP option space appropriately. A TCP session may require options other than TCP-AO and those options may consume more than 4 bytes of option space. In this case, the TCP session MUST NOT use TCP-AO with the MAC algorithms described by this document.¶
A TCP implementation MAY prioritize TCP options so that there will be enough space for options that are absolutely required.¶
This document inherits all of the security considerations of [RFC5869], [RFC5925], [RFC8702],[RFC9688], and [I-D.ietf-tcpm-tcp-ao-algs].¶
IANA is requested to add the following entries to the "Cryptographic Algorithms for TCP-AO Registration" (https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml#tcp-parameters-3).¶
| Algorithm | Reference |
|---|---|
| HMAC-SHA256 | This Document |
| KMAC256 | This Document |
Thanks to Eric Biggers, Lars Eggert, Gorry Fairhurst, C.M. Heard, Russ Housley, John Mattsson, Yoshifumi Nishida, Joe Touch, Michael Tuxen, and Magnus Westerlund for their review and comments.¶