Network Working Group P. Hoffman Request for Comments: 4434 VPN Consortium Obsoletes: 3664 February 2006 Category: Standards TrackThe AES-XCBC-PRF-128 Algorithm for the Internet Key Exchange Protocol (IKE)
1. Introduction
[AES-XCBC-MAC] describes a method to use the Advanced Encryption Standard (AES) as a message authentication code (MAC) whose output is 96 bits long. While 96 bits is considered appropriate for a MAC, it is too short to be useful as a long-lived pseudo-random function (PRF) in either IKE version 1 or version 2. Both versions of IKE use the PRF to create keys in a fashion that is dependent on the length of the output of the PRF. Using a PRF that has 96 bits of output creates keys that are easier to attack with brute force than a PRF that uses 128 bits of output.
Hoffman Standards Track [Page 1]
RFC 4434 AES-XCBC-PRF-128 Algorithm February 2006 1.1. Differences from RFC 3664This document specifies the same algorithm as RFC 3664 except that the restriction that keys be exactly 128 bits from [AES-XCBC-MAC] is removed. Implementations of RFC 3664 will have the same bits-on-the-wire results as this algorithm; the only difference is that keys that were not equal in length to 128 bits will no longer be rejected but instead will be made 128 bits.
2. The AES-XCBC-PRF-128 Algorithm
The AES-XCBC-PRF-128 algorithm is identical to [AES-XCBC-MAC] except for two changes. First, the key length restriction of exactly 128 bits in [AES-XCBC-MAC] is eliminated, as described below; this brings AES-XCBC-PRF-128 in alignment with HMAC-SHA1 and HMAC-MD5 when they are used as PRFs in IKE. Second, the truncation step in section 4.3 of [AES-XCBC-MAC] is *not* performed; that is, there is no processing after section 4.2 of [AES-XCBC-MAC].
Hoffman Standards Track [Page 2]
RFC 4434 AES-XCBC-PRF-128 Algorithm February 2006 2.1. Test VectorsTest Case AES-XCBC-PRF-128 with 20-byte input Key : 000102030405060708090a0b0c0d0e0f Key Length : 16 Message : 000102030405060708090a0b0c0d0e0f10111213 PRF Output : 47f51b4564966215b8985c63055ed308
3. Security Considerations
The security provided by AES-XCBC-MAC-PRF is based on the strengths of AES and HMAC. At the time of this writing, there are no known practical cryptographic attacks against AES, AES-XCBC-MAC-PRF, or HMACs.
4. IANA Considerations
Any reference to RFC 3664 needs to be updated to refer to this document when it is published.
Hoffman Standards Track [Page 3]
RFC 4434 AES-XCBC-PRF-128 Algorithm February 2006 5. Normative References[AES-XCBC-MAC] Frankel, S. and H. Herbert, "The AES-XCBC-MAC-96
Hoffman Standards Track [Page 4]
RFC 4434 AES-XCBC-PRF-128 Algorithm February 2006 Appendix A. AcknowledgementsPasi Eronen suggested the easy method for shortening too-long keys. Saroop Mathur and John Black provided and verified the test vectors.
Hoffman Standards Track [Page 5]
RFC 4434 AES-XCBC-PRF-128 Algorithm February 2006
Full Copyright Statement