Internet-Draft tcp-ao-algs November 2026
Li, et al. Expires 27 May 2027 [Page]
Workgroup:
TCPM Working Group
Internet-Draft:
draft-bonica-tcpm-tcp-ao-long-algs-08
Published:
Intended Status:
Standards Track
Expires:
Authors:
T. Li
HPE
P. Chen
HPE
P. Kumar
HPE
R. Thomas
Arista Networks
A. Banerjee
Cisco Systems

Cryptographic Algorithms That Produce 256-bit MACs For Use With TCP-AO

Abstract

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.

Status of This Memo

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.

▲

Table of Contents

1. Introduction

[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.

2. Requirements Language

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.

3. Algorithm Classes

[RFC5925] requires the following cryptographic algorithm classes:

Section 3.1 of this document addresses KDFs while Section 3.2 addresses MAC algorithms.

3.1. Key Derivation Functions (KDFs)

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.

3.2. MAC Algorithms

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].

3.2.1. The Use of HMAC-SHA256

The three fixed elements for HMAC-SHA256 are:

  • KDF_alg: HKDF-SHA256.

  • Key_Length: 256 bits.

  • MAC_Length: 256 bits.

In the interface:

  • MAC = MAC_alg(Traffic_Key, Message)

HMAC-SHA256 for TCP-AO has the following values:

  • MAC is the value to be encoded in TCP-AO.

  • MAC_alg is HMAC-SHA256.

  • Traffic_Key is the result of the KDF.

  • Message is the message to be authenticated, as specified in Section 5.1 of [RFC5925].

3.2.2. The Use of KMAC256

The three fixed elements for KMAC256 are:

  • KDF_alg: KMAC256-KDF.

  • Key_Length: 256 bits.

  • MAC_Length: 256 bits.

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:

  • MAC is the value to be encoded in TCP-AO.

  • MAC_alg is KMAC256.

  • Traffic_Key is the result of the KDF.

  • Message is the message to be authenticated, as specified in Section 5.1 of [RFC5925].

  • L = 256 (bits) is the requested MAC length.

  • S is the empty (zero-length) string.

4. Operational Considerations

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.

5. Security Considerations

This document inherits all of the security considerations of [RFC5869], [RFC5925], [RFC8702],[RFC9688], and [I-D.ietf-tcpm-tcp-ao-algs].

6. IANA Considerations

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).

Table 1: IANA Actions
Algorithm Reference
HMAC-SHA256 This Document
KMAC256 This Document

7. Contributors

8. Acknowledgements

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.

9. Normative References

[DOI.10.6028_NIST.SP.800-56Cr2]
Barker, E., Chen, L., and R. Davis, "Recommendation for Key-Derivation Methods in Key-Establishment Schemes", National Institute of Standards and Technology, DOI 10.6028/nist.sp.800-56cr2, , <https://doi.org/10.6028/nist.sp.800-56cr2>.
[DOI.10.6028_NIST.SP.800-185]
Kelsey, J., Change, S., and R. Perlner, "SHA-3 derived functions: cSHAKE, KMAC, TupleHash and ParallelHash", National Institute of Standards and Technology, DOI 10.6028/nist.sp.800-185, , <https://doi.org/10.6028/nist.sp.800-185>.
[I-D.ietf-tcpm-tcp-ao-algs]
Bonica, R. P., Li, T., Chen, P., Kumar, P., Thomas, R., Nayak, A. S., and A. Banerjee, "Cryptographic Algorithms That Produce 128-bit MACs For Use With TCP-AO", Work in Progress, Internet-Draft, draft-ietf-tcpm-tcp-ao-algs-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-tcpm-tcp-ao-algs-09>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC5869]
Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, , <https://www.rfc-editor.org/rfc/rfc5869>.
[RFC5925]
Touch, J., Mankin, A., and R. Bonica, "The TCP Authentication Option", RFC 5925, DOI 10.17487/RFC5925, , <https://www.rfc-editor.org/rfc/rfc5925>.
[RFC5926]
Lebovitz, G. and E. Rescorla, "Cryptographic Algorithms for the TCP Authentication Option (TCP-AO)", RFC 5926, DOI 10.17487/RFC5926, , <https://www.rfc-editor.org/rfc/rfc5926>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8702]
Kampanakis, P. and Q. Dang, "Use of the SHAKE One-Way Hash Functions in the Cryptographic Message Syntax (CMS)", RFC 8702, DOI 10.17487/RFC8702, , <https://www.rfc-editor.org/rfc/rfc8702>.
[RFC9235]
Touch, J. and J. Kuusisaari, "TCP Authentication Option (TCP-AO) Test Vectors", RFC 9235, DOI 10.17487/RFC9235, , <https://www.rfc-editor.org/rfc/rfc9235>.
[RFC9688]
Housley, R., "Use of the SHA3 One-Way Hash Functions in the Cryptographic Message Syntax (CMS)", RFC 9688, DOI 10.17487