Network Working Group R. Glenn
Request for Comments: 2410 NIST
Category: Standards Track S. Kent
BBN Corp
November 1998
The NULL Encryption Algorithm and Its Use With IPsec
1. Introduction
This memo defines the NULL encryption algorithm and its use with the IPsec Encapsulating Security Payload [ESP] to provide authentication and integrity without confidentiality.
Glenn & Kent Standards Track [Page 1]
RFC 2410 NULL and IPsec November 1998
The IPsec Authentication Header [AH] specification provides a similar service, by computing authentication data which covers the data portion of a packet as well as the immutable in transit portions of the IP header. ESP_NULL does not include the IP header in calculating the authentication data. This can be useful in providing IPsec services through non-IP network devices. The discussion on how ESP_NULL might be used with non-IP network devices is outside the scope of this document.
2. Algorithm Definition
NULL is defined mathematically by the use of the Identity function I applied to a block of data b such that:
2.1 Keying Material
Like other modern ciphers, e.g., RC5 [RFC-2040], the NULL encryption algorithm can make use of keys of varying lengths. However, no measurable increase in security is afforded by the use of longer key lengths.
2.2 Cryptographic Synchronization
Because of the stateless nature of the NULL encryption algorithm, it is not necessary to transmit an IV or similar cryptographic synchronization data on a per packet (or even a per SA) basis. The NULL encryption algorithm combines many of the best features of both block and stream ciphers, while still not requiring the transmission of an IV or analogous cryptographic synchronization data.
Glenn & Kent Standards Track [Page 2]
RFC 2410 NULL and IPsec November 1998 2.3 PaddingNULL has a block size of 1 byte, thus padding is not necessary.
2.4. Performance
The NULL encryption algorithm is significantly faster than other commonly used symmetric encryption algorithms and implementations of the base algorithm are available for all commonly used hardware and OS platforms.
2.5 Test Vectors
The following is a set of test vectors to facilitate in the development of interoperable NULL implementations.
3. ESP_NULL Operational Requirements
ESP_NULL is defined by using NULL within the context of ESP. This section further defines ESP_NULL by pointing out particular operational parameter requirements.
4. Security Considerations
The NULL encryption algorithm offers no confidentiality nor does it offer any other security service. It is simply a convenient way to represent the optional use of applying encryption within ESP. ESP can then be used to provide authentication and integrity without confidentiality. Unlike AH these services are not applied to any part of the IP header. At the time of this writing there is no evidence to support that ESP_NULL is any less secure than AH when using the same authentication algorithm (i.e. a packet secured using ESP_NULL with some authentication algorithm is as cryptographically secure as a packet secured using AH with the same authentication algorithm).
Glenn & Kent Standards Track [Page 3]
RFC 2410 NULL and IPsec November 1998
As stated in [ESP], while the use of encryption algorithms and authentication algorithms are optional in ESP, it is imperative that an ESP SA specifies the use of at least one cryptographically strong encryption algorithm or one cryptographically strong authentication algorithm or one of each.
5. Intellectual Property Rights
Pursuant to the provisions of [RFC-2026], the authors represent that they have disclosed the existence of any proprietary or intellectual property rights in the contribution that are reasonably and personally known to the authors. The authors do not represent that they personally know of all potentially pertinent proprietary and intellectual property rights owned or claimed by the organizations they represent or third parties.
6. Acknowledgments
Steve Bellovin suggested and provided the text for the Intellectual Property Rights section.
7. References
[ESP] Kent, S., and R. Atkinson, "IP Encapsulating Security
Glenn & Kent Standards Track [Page 4]
RFC 2410 NULL and IPsec November 1998
[IKE] Harkins, D., and D. Carrel, "The Internet Key Exchange
6. Editors' Addresses
Rob Glenn NIST
Glenn & Kent Standards Track [Page 5]
RFC 2410 NULL and IPsec November 1998 7. Full Copyright StatementCopyright (C) The Internet Society (1998). All Rights Reserved.