6man | S.Z. Zhou, Ed. |
Internet-Draft | R.Z. Zhang |
Intended status: Standards Track | Z.X. Xie |
Expires: August 31, 2012 | ZTE Corporation |
March 1, 2012 |
Another Support for Multiple Hash Algorithms in Cryptographically Generated Addresses (CGAs)
draft-zhou-6man-mhash-cga-00
This document provides a support for multiple hash algorithms in Cryptographically Generated Addresses (CGAs) defined in RFC 3972.
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 http://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 August 31, 2012.
Copyright (c) 2012 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 (http://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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
Cryptographically Generated Addresses (CGAs) defined in [RFC 3972] is a method of binding a public key to an IPv6 address, with the aim of providing address ownership in many internet protocols. But RFC3972 only defined a unique hash algorithm, SHA-1, used to hashing a public key into part of the neitwork IP address. To provide a support for multiple hash algorishms, a method of reusing the security parameter bits in the address is secified [RFC 4982] . This method can only support three hash algorithm at most, and at the same time limiting security parameter to a few values. In this document, a support for multiple hash algorithms is provided without limiting security parameter or downgrading the security level of CGAs.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119].
To accomodate RFC 4982, an extension field "Mhash-method" is defined. The format is illustrated in Figure 1.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Extension Type | Extension Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mhash-method| +-+-+-+-+-+-+-+
Extension Data Length: 1. (16-bit unsigned integer. Length of the multiple-hash-method field of this option, in octets.)
Mhash-method: 1 octet length field. If Mhash-method equal 0, it means the method of denoting hash algorithm specified in RFC 4982 is adopted, if Mhash-method equal 1, it means the method specified in this document is adopted.
A hash algorithm identity parameter (hid) in CGA is defiend to denote the hash algorithm adopted when caculating HASH1 and HASH2. The hash algorithm identity parameter is a three-bit unsigned integer, and it is encoded in the 3rd-5th bits of the interface identifier. This can be written as follows:
hid = (interface identifier & 0x1c00000000000000) >> 58
0 1 2 3 4 5 6 7 8 9 0 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | sec | hid |0 0| Leftmost 56 bits of HASH1 output | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Generate a CGA as defined in RFC 3972 except some modification to steps 2,3,5,6 and 9 as shown in the following:
Veirfy a CGA as defined in RFC 3972 except some modification to steps 3,4,6 and 7 as shown in the following:
This document defines one new CGA Extension Type [RFC4581] option, which must be assigned by IANA:
Name: Mhash-method extension type;
Value: TBA.
Description: see Section 2.
The values of Mhash-method are also defined:
Name: Mhash-method extension value;
Value: 0 meaning RFC 4982, 1 meaning this document;
Description: see Section 2.
This document also defines a new parameter (hid) in CGA, the value of which must be assigned by IANA. It may be assigned as follows:
Name | Value -------------------+------- SHA-1 | 000 SHA-244 | 001 SHA-256 | 010 SHA-384 | 011 SHA-512 | 100 TBD | 101 TBD | 110 TBD | 111
The method in this document have the hash algorithm identifier as part of the interface identifier and ultimatly part of IPv6 address, downgrading attack can be avoided as analysed in RFC 4982.
WIth 3 bits off the interface identifier used for output of HASH1, the security level will be downgraded to O(2^56) from O(2^59), but with the increment by 3 of the check bits in the output of HASH2, the whole security level is kept the same, i.e.,O( 2^(16*sec+59)).
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. |
[RFC3972] | Aura, T., "Cryptographically Generated Addresses (CGA)", RFC 3972, March 2005. |
[RFC4982] | Bagnulo, M. and J. Arkko, "Support for Multiple Hash Algorithms in Cryptographically Generated Addresses (CGAs)", RFC 4982, July 2007. |