Network Working Group P. Metzger
Request for Comments: 2841 Piermont
Category: Historic W. Simpson
Obsoletes: 1852 DayDreamer
November 2000
IP Authentication using Keyed SHA1 with Interleaved Padding (IP-MAC)
Metzger & Simpson Historic [Page 1]
RFC 2841 AH SHA1 IP-MAC November 2000 1. IntroductionThe Authentication Header (AH) [RFC-1826] provides integrity and authentication for IP datagrams. This specification describes the AH use of keys with the Secure Hash Algorithm (SHA1) [FIPS-180-1]. This SHA1-IP-MAC algorithm uses a leading and trailing key (a variant of the "envelope method"), with alignment padding between both keys and data.
1.1. Keys
The secret authentication key shared between the communicating parties SHOULD be a cryptographically strong random number, not a guessable string of any sort.
1.2. Data Size
SHA1's 160-bit output is naturally 32-bit aligned. However, many implementations require 64-bit alignment of the following headers.
Metzger & Simpson Historic [Page 2]
RFC 2841 AH SHA1 IP-MAC November 2000
Discussion:
1.3. Performance
Preliminary results indicate that SHA1 is 62% as fast as MD5, and 80% as fast as DES hashing. That is:
2. Calculation
The 160-bit digest is calculated as described in [FIPS-180-1]. A portable C language implementation of SHA1 is available via FTP from ftp://rand.org/pub/jim/sha.tar.gz.
Metzger & Simpson Historic [Page 3]
RFC 2841 AH SHA1 IP-MAC November 2000
Finally, the 160-bit SHA1 digest is calculated, and the result is inserted into the Authentication Data field.
Metzger & Simpson Historic [Page 4]
RFC 2841 AH SHA1 IP-MAC November 2000 A. ChangesChanges from RFC 1852:
Metzger & Simpson Historic [Page 5]
RFC 2841 AH SHA1 IP-MAC November 2000
Security Considerations
Metzger & Simpson Historic [Page 6]
RFC 2841 AH SHA1 IP-MAC November 2000
References
Metzger & Simpson Historic [Page 7]
RFC 2841 AH SHA1 IP-MAC November 2000
Contacts
Metzger & Simpson Historic [Page 8]
RFC 2841 AH SHA1 IP-MAC November 2000
Full Copyright Statement