7182
PROPOSED STANDARD

Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)

Authors: U. Herberg, T. Clausen, C. Dearlove
Date: April 2014
Area: rtg
Working Group: manet
Stream: IETF
Obsoletes: RFC 6622

Abstract

This document revises, extends, and replaces RFC 6622. It describes general and flexible TLVs for representing cryptographic Integrity Check Values (ICVs) and timestamps, using the generalized Mobile Ad Hoc Network (MANET) packet/message format defined in RFC 5444. It defines two Packet TLVs, two Message TLVs, and two Address Block TLVs for affixing ICVs and timestamps to a packet, a message, and one or more addresses, respectively.

RFC 7182: Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs) [RFC Home] [TEXT|PDF|HTML] [Tracker] [IPR] [Errata] [Info page]

PROPOSED STANDARD
Errata Exist
Internet Engineering Task Force (IETF)                        U. Herberg
Request for Comments: 7182               Fujitsu Laboratories of America
Obsoletes: <a href="./rfc6622">6622</a>                                               T. Clausen
Category: Standards Track                       LIX, Ecole Polytechnique
ISSN: 2070-1721                                              C. Dearlove
                                                         BAE Systems ATC
                                                              April 2014


          <span class="h1">Integrity Check Value and Timestamp TLV Definitions</span>
                  <span class="h1">for Mobile Ad Hoc Networks (MANETs)</span>

Abstract

   This document revises, extends, and replaces <a href="./rfc6622">RFC 6622</a>.  It describes
   general and flexible TLVs for representing cryptographic Integrity
   Check Values (ICVs) and timestamps, using the generalized Mobile Ad
   Hoc Network (MANET) packet/message format defined in <a href="./rfc5444">RFC 5444</a>.  It
   defines two Packet TLVs, two Message TLVs, and two Address Block TLVs
   for affixing ICVs and timestamps to a packet, a message, and one or
   more addresses, respectively.

Status of This Memo

   This is an Internet Standards Track document.

   This document is a product of the Internet Engineering Task Force
   (IETF).  It represents the consensus of the IETF community.  It has
   received public review and has been approved for publication by the
   Internet Engineering Steering Group (IESG).  Further information on
   Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.

   Information about the current status of this document, any errata,
   and how to provide feedback on it may be obtained at
   <a href="https://www.rfc-editor.org/info/rfc7182">http://www.rfc-editor.org/info/rfc7182</a>.
















<span class="grey">Herberg, et al.              Standards Track                    [Page 1]</span>

<span id="page-2" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


Copyright Notice

   Copyright (c) 2014 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.

Table of Contents

   <a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
      <a href="#section-1.1">1.1</a>. Differences from <a href="./rfc6622">RFC 6622</a> ..................................<a href="#page-4">4</a>
   <a href="#section-2">2</a>. Terminology .....................................................<a href="#page-4">4</a>
   <a href="#section-3">3</a>. Applicability Statement .........................................<a href="#page-5">5</a>
   <a href="#section-4">4</a>. Security Architecture ...........................................<a href="#page-6">6</a>
   <a href="#section-5">5</a>. Overview and Functioning ........................................<a href="#page-7">7</a>
   <a href="#section-6">6</a>. General ICV TLV Structure .......................................<a href="#page-8">8</a>
   <a href="#section-7">7</a>. General Timestamp TLV Structure .................................<a href="#page-8">8</a>
   <a href="#section-8">8</a>. Packet TLVs .....................................................<a href="#page-9">9</a>
      <a href="#section-8.1">8.1</a>. ICV Packet TLV .............................................<a href="#page-9">9</a>
      <a href="#section-8.2">8.2</a>. TIMESTAMP Packet TLV ......................................<a href="#page-10">10</a>
   <a href="#section-9">9</a>. Message TLVs ...................................................<a href="#page-10">10</a>
      <a href="#section-9.1">9.1</a>. ICV Message TLV ...........................................<a href="#page-10">10</a>
      <a href="#section-9.2">9.2</a>. TIMESTAMP Message TLV .....................................<a href="#page-10">10</a>
   <a href="#section-10">10</a>. Address Block TLVs ............................................<a href="#page-11">11</a>
      <a href="#section-10.1">10.1</a>. ICV Address Block TLV ....................................<a href="#page-11">11</a>
      <a href="#section-10.2">10.2</a>. TIMESTAMP Address Block TLV ..............................<a href="#page-11">11</a>
   <a href="#section-11">11</a>. ICV: Basic ....................................................<a href="#page-11">11</a>
   <a href="#section-12">12</a>. ICV: Hash Function and Cryptographic Function .................<a href="#page-12">12</a>
      <a href="#section-12.1">12.1</a>. General ICV TLV Structure ................................<a href="#page-12">12</a>
           <a href="#section-12.1.1">12.1.1</a>. Rationale .........................................<a href="#page-14">14</a>
           <a href="#section-12.1.2">12.1.2</a>. Parameters ........................................<a href="#page-15">15</a>
      <a href="#section-12.2">12.2</a>. Considerations for Calculating the ICV ...................<a href="#page-15">15</a>
           <a href="#section-12.2.1">12.2.1</a>. ICV Packet TLV ....................................<a href="#page-15">15</a>
           <a href="#section-12.2.2">12.2.2</a>. ICV Message TLV ...................................<a href="#page-16">16</a>
           <a href="#section-12.2.3">12.2.3</a>. ICV Address Block TLV .............................<a href="#page-16">16</a>
      <a href="#section-12.3">12.3</a>. Example of a Message Including an ICV ....................<a href="#page-17">17</a>
   <a href="#section-13">13</a>. IANA Considerations ...........................................<a href="#page-19">19</a>
      <a href="#section-13.1">13.1</a>. Expert Review: Evaluation Guidelines .....................<a href="#page-19">19</a>
      <a href="#section-13.2">13.2</a>. Packet TLV Types .........................................<a href="#page-20">20</a>
      <a href="#section-13.3">13.3</a>. Message TLV Types ........................................<a href="#page-20">20</a>



<span class="grey">Herberg, et al.              Standards Track                    [Page 2]</span>

<span id="page-3" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      <a href="#section-13.4">13.4</a>. Address Block TLV Types ..................................<a href="#page-20">20</a>
      <a href="#section-13.5">13.5</a>. ICV Packet TLV Type Extensions ...........................<a href="#page-21">21</a>
      <a href="#section-13.6">13.6</a>. TIMESTAMP Packet TLV Type Extensions .....................<a href="#page-21">21</a>
      <a href="#section-13.7">13.7</a>. ICV Message TLV Type Extensions ..........................<a href="#page-22">22</a>
      <a href="#section-13.8">13.8</a>. TIMESTAMP Message TLV Type Extensions ....................<a href="#page-23">23</a>
      <a href="#section-13.9">13.9</a>. ICV Address Block TLV Type Extensions ....................<a href="#page-24">24</a>
      <a href="#section-13.10">13.10</a>. TIMESTAMP Address Block TLV Type Extensions .............<a href="#page-25">25</a>
      <a href="#section-13.11">13.11</a>. Hash Functions ..........................................<a href="#page-26">26</a>
      <a href="#section-13.12">13.12</a>. Cryptographic Functions .................................<a href="#page-27">27</a>
   <a href="#section-14">14</a>. Security Considerations .......................................<a href="#page-28">28</a>
   <a href="#section-15">15</a>. Acknowledgements ..............................................<a href="#page-28">28</a>
   <a href="#section-16">16</a>. References ....................................................<a href="#page-29">29</a>
      <a href="#section-16.1">16.1</a>. Normative References .....................................<a href="#page-29">29</a>
      <a href="#section-16.2">16.2</a>. Informative References ...................................<a href="#page-30">30</a>

<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>.  Introduction</span>

   This document specifies a syntactical representation of security-
   related information for use with [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] addresses, messages, and
   packets.  It also specifies IANA registrations of TLV types and type
   extension registries for these TLV types.  This specification does
   not represent a stand-alone protocol, but it is intended for use by
   MANET routing protocols or security extensions thereof.

   Specifically, this document, which revises, extends, and replaces
   [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], specifies:

   o  Two kinds of TLV: one for carrying Integrity Check Values (ICVs)
      and one for timestamps in packets, messages, and Address Blocks as
      defined by [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].

   o  A generic framework for use of these TLVs, accounting for specific
      features of Packet, Message, and Address Block TLVs.

   o  IANA registrations for TLVs, and registries for TLV type
      extensions, replacing those from [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>].

   This document specifies IANA registries for recording code points for
   ICV TLVs and TIMESTAMP TLVs, as well as timestamps, hash functions,
   and cryptographic functions.

   Moreover, in <a href="#section-12">Section 12</a>, this document defines the following:

   o  A method for generating ICVs using a combination of a
      cryptographic function and a hash function and for including such
      ICVs in the value field of a TLV.





<span class="grey">Herberg, et al.              Standards Track                    [Page 3]</span>

<span id="page-4" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>.  Differences from <a href="./rfc6622">RFC 6622</a></span>

   This document obsoletes [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], replacing that document as the
   specification of two TLV types, TIMESTAMP and ICV, for packets,
   messages and Address Blocks.  For the ICV type, this document
   specifies a new type extension, 2 (see <a href="#section-12">Section 12</a>), in addition to
   including the original type extensions (0 and 1) from [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>].

   The TLV value of an ICV TLV with type extension = 2 has the same
   internal structure as an ICV TLV with type extension = 1 but is
   calculated also over the source address of the IP datagram carrying
   the packet, message, or Address Block.  The rationale for adding this
   type extension is that some MANET protocols, such as [<a href="./rfc6130" title=""Mobile Ad Hoc Network (MANET) Neighborhood Discovery Protocol (NHDP)"">RFC6130</a>], use
   the IP source address of the IP datagram carrying the packet,
   message, or Address Block, e.g., to identify links with neighbor
   routers.  If this address is not otherwise contained in the packet,
   message, or Address Block payload (which is permitted, e.g., in
   [<a href="./rfc6130" title=""Mobile Ad Hoc Network (MANET) Neighborhood Discovery Protocol (NHDP)"">RFC6130</a>]), then the address is not protected against tampering.

   This document also incorporates a number of editorial improvements
   over [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>].  In particular, it makes it clear that an ICV TLV may
   be used to carry a truncated ICV and that a single or multivalue
   TIMESTAMP or ICV Address Block TLV may cover more than one address.
   Moreover, to be consistent with the terminology in [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], the
   name of the TLVs specified in this document have changed from "Packet
   ICV TLV" to "ICV Packet TLV" and from "Packet TIMESTAMP TLV" to
   "TIMESTAMP Packet TLV" (and similar for Message and Address Block
   TLVs).

   A normative requirement in <a href="#section-9.2">Section 9.2</a> has changed from SHOULD to
   MUST in the following sentence:

      If a message contains one or more TIMESTAMP TLVs and one or more
      ICV TLVs, then the TIMESTAMP TLVs (as well as any other Message
      TLVs) MUST be added to the message before the ICV TLVs....

<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>.  Terminology</span>

   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
   [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].









<span class="grey">Herberg, et al.              Standards Track                    [Page 4]</span>

<span id="page-5" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   This document uses the terminology and notation defined in [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].
   In particular, the following TLV fields and notation from [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>]
   are used in this specification:

   <msg-hop-limit>  is the hop limit of a message, as specified in
      <a href="./rfc5444#section-5.2">Section 5.2 of [RFC5444]</a>.

   <msg-hop-count>  is the hop count of a message, as specified in
      <a href="./rfc5444#section-5.2">Section 5.2 of [RFC5444]</a>.

   <length>  is the length of the value field in a TLV in octets, as
      specified in <a href="./rfc5444#section-5.4.1">Section 5.4.1 of [RFC5444]</a>.

   single-length  is the length of a single value in the value field in
      a TLV in octets, as specified in <a href="./rfc5444#section-5.4.1">Section 5.4.1 of [RFC5444]</a>.  (It
      is equal to <length> except in a multivalue Address Block TLV.)

   In addition to using the regular expressions defined in <a href="./rfc5444#section-2.1.1">Section 2.1.1
   of [RFC5444]</a>, this document defines the following:

   + - One or more occurrences of the preceding element or group.

<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>.  Applicability Statement</span>

   MANET routing protocols using the format defined in [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] are
   accorded the ability to carry additional information in control
   messages and packets through the inclusion of TLVs.  Information so
   included MAY be used by a MANET routing protocol, or by an extension
   of a MANET routing protocol, according to its specification.

   This document specifies how to include an ICV for a packet, a
   message, and addresses in an Address Block within a message, using
   such TLVs.  This document also specifies how to treat an empty Packet
   TLV Block, and "mutable" fields, specifically the <msg-hop-count> and
   <msg-hop-limit> fields, if present in the Message Header when
   calculating ICVs, such that the resulting ICV can be correctly
   verified by any recipient.

   This document describes a generic framework for creating ICVs, and
   how to include these ICVs in TLVs.  In <a href="#section-12">Section 12</a>, an example method
   for calculating such ICVs is given, using a cryptographic function
   and a hash function, for which two TLV type extensions are allocated.

   This document does not specify a protocol.  Protocol specifications
   that make use of the framework, specified in this document, will
   reference this document in a normative way, and they may require the
   implementation of some or all of the algorithms described in this
   document.  As this document does not specify a protocol itself, key



<span class="grey">Herberg, et al.              Standards Track                    [Page 5]</span>

<span id="page-6" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   management and key exchange mechanisms are out of scope and may be
   specified in the protocol or protocol extension using this
   specification.

<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>.  Security Architecture</span>

   MANET routing protocol specifications may have a clause allowing a
   control message to be rejected as "badly formed" or "insecure" prior
   to the message being processed or forwarded.  In particular, MANET
   routing protocols such as the Neighborhood Discovery Protocol (NHDP)
   [<a href="./rfc6130" title=""Mobile Ad Hoc Network (MANET) Neighborhood Discovery Protocol (NHDP)"">RFC6130</a>] and the Optimized Link State Routing Protocol version 2
   [<a href="./rfc7181" title=""The Optimized Link State Routing Protocol Version 2"">RFC7181</a>] recognize external reasons (such as failure to verify an
   ICV) for rejecting a message that would be considered "invalid for
   processing".

   This architecture is a result of the observation that with respect to
   security in MANETs, "one size rarely fits all" and that MANET routing
   protocol deployment domains have varying security requirements
   ranging from "unbreakable" to "virtually none".  The virtue of this
   approach is that MANET routing protocol specifications (and
   implementations) can remain "generic", with extensions providing
   proper security mechanisms specific to a deployment domain.

   The MANET routing protocol "security architecture", in which this
   specification situates itself, can therefore be summarized as
   follows:

   o  MANET routing protocol specifications, each with a clause allowing
      an extension to reject a message (prior to processing/forwarding)
      as "badly formed" or "insecure".

   o  MANET routing protocol security extensions, each rejecting
      messages as "badly formed" or "insecure", as appropriate for a
      given security requirement specific to a deployment domain.

   o  Code points and an exchange format for information, necessary for
      specification of such MANET routing protocol security extensions.

   This document addresses the last of the points above, by specifying a
   common exchange format for cryptographic ICVs and timestamps, making
   reservations from within the Packet TLV, Message TLV, and Address
   Block TLV registries of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], to be used by (and shared among)
   MANET routing protocol security extensions.

   For the specific decomposition of an ICV using a cryptographic
   function and a hash function (specified in <a href="#section-12">Section 12</a>), this document
   specifies two IANA registries (see <a href="#section-13">Section 13</a>) for code points for
   hash functions and cryptographic functions.



<span class="grey">Herberg, et al.              Standards Track                    [Page 6]</span>

<span id="page-7" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   With respect to [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], this document is:

   o  Intended to be used in the non-normative, but intended, mode of
      use described in <a href="./rfc5444#appendix-B">Appendix B of [RFC5444]</a>.

   o  A specific example of the Security Considerations section of
      [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] (the authentication part).

<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>.  Overview and Functioning</span>

   This document specifies a syntactical representation of security-
   related information for use with [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] addresses, messages, and
   packets, and also specifies IANA registrations (see <a href="#section-13">Section 13</a>) of
   TLV types and type extension registries for these TLV types.

   Moreover, this document provides guidelines for how MANET routing
   protocols, and MANET routing protocol extensions using this
   specification, should treat ICV and Timestamp TLVs, and mutable
   fields in messages.  This specification does not represent a stand-
   alone protocol.  MANET routing protocols, and MANET routing protocol
   extensions using this specification, MUST provide instructions as to
   how to handle packets, messages, and addresses with security
   information, associated as specified in this document.

   This document specifies TLV type assignments (see <a href="#section-13">Section 13</a>) from
   the registries defined for Packet, Message, and Address Block TLVs in
   [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].  When a TLV type is assigned from one of these registries,
   a registry for type extensions for that TLV type is created by IANA.
   This document specifies these type extension registries, in order to
   specify internal structure (and accompanying processing) of the
   <value> field of a TLV.

   For example, and as specified in this document, an ICV TLV with type
   extension = 0 specifies that the <value> field has no predefined
   internal structure, but is simply a sequence of octets.  An ICV TLV
   with type extension = 1 specifies that the <value> field has a
   predefined internal structure and defines its interpretation.  An ICV
   TLV with type extension = 2 (added in this document) is the same as
   an ICV TLV with type extension = 1, except that the integrity
   protection also covers the source address of the IP datagram carrying
   the packet, message, or Address Block.

   Specifically, with type extension = 1 or type extension = 2, the
   <value> field contains the result of combining a cryptographic
   function and a hash function, calculated over the contents of the
   packet, message, or Address Block.  The <value> field contains sub-
   fields indicating which hash function and cryptographic function have
   been used, as specified in <a href="#section-12">Section 12</a>.



<span class="grey">Herberg, et al.              Standards Track                    [Page 7]</span>

<span id="page-8" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   Other documents can request assignments for other type extensions; if
   they do so, they MUST specify their internal structure (if any) and
   interpretation.

<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>.  General ICV TLV Structure</span>

   The value of the ICV TLV is:

      <value> := <ICV-value>+

   where:

      <ICV-value> is a field, of length <length> octets (except in a
      multivalue Address Block TLV, where each <ICV-value> is of length
      single-length octets) that contains the information to be
      interpreted by the ICV verification process, as specified by the
      type extension.

   Note that this does not specify how to calculate the <ICV-value> nor
   the internal structure thereof, if any; such information MUST be
   specified by the type extension for the ICV TLV type; see <a href="#section-13">Section 13</a>.
   This document specifies three such type extensions: one for ICVs
   without predefined structures and two for ICVs constructed combining
   a cryptographic function and a hash function.

<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>.  General Timestamp TLV Structure</span>

   The value of the Timestamp TLV is:

      <value> := <time-value>+

   where:

      <time-value> is a field, of length <length> octets (except in a
      multivalue Address Block TLV, where each <time-value> is of length
      single-length octets) that contains the timestamp.

   Note that this does not specify how to calculate the <time-value> nor
   the internal structure thereof, if any; such information MUST be
   specified by the type extension for the TIMESTAMP TLV type; see
   <a href="#section-13">Section 13</a>.

   A timestamp is essentially "freshness information".  As such, its
   setting and interpretation are to be determined by the MANET routing
   protocol, or MANET routing protocol extension, that uses the
   timestamp and can, for example, correspond to a POSIX timestamp, GPS
   timestamp, or a simple sequence number.  Note that ensuring time
   synchronization in a MANET may be difficult because of the



<span class="grey">Herberg, et al.              Standards Track                    [Page 8]</span>

<span id="page-9" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   decentralized architecture as well as highly dynamic topology due to
   mobility or other factors.  It is out of scope for this document to
   specify a time synchronization mechanism.

<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>.  Packet TLVs</span>

   Two Packet TLVs are defined: one for including the cryptographic ICV
   of a packet and one for including the timestamp indicating the time
   at which the cryptographic ICV was calculated.

<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>.  ICV Packet TLV</span>

   An ICV Packet TLV is an example of an ICV TLV as described in
   <a href="#section-6">Section 6</a>.  When determining the <ICV-value> for a packet, and adding
   an ICV Packet TLV to a packet, the following considerations MUST be
   applied:

   o  Because packets as defined in [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] are never forwarded by
      routers, no special considerations are required regarding mutable
      fields (i.e., <msg-hop-count> and <msg-hop-limit>), if present
      within any messages in the packet, when calculating the ICV.

   o  Any ICV Packet TLVs already present in the Packet TLV Block MUST
      be removed before calculating the ICV, and the Packet TLV Block
      size MUST be recalculated accordingly.

   o  If the Packet TLV Block now contains no Packet TLVs, the Packet
      TLV Block MUST be removed, and the phastlv bit in the <pkt-flags>
      field in the Packet Header MUST be cleared ('0').

   o  Any removed ICV Packet TLVs MUST be restored after having
      calculated the ICV, and the Packet TLV Block size MUST be
      recalculated accordingly.

   o  When any removed ICV Packet TLVs, and the newly calculated ICV
      Packet TLV, are added to the packet, if there is no Packet TLV
      Block, then one MUST be added, including setting ('1') the phastlv
      bit in the <pkt-flags> field in the Packet Header.

   The rationale for removing any ICV Packet TLVs already present prior
   to calculating the ICV is that several ICV TLVs may be added to the
   same packet, e.g., using different ICV cryptographic and/or hash
   functions.  The rationale for removing an empty Packet TLV Block is
   because the receiver of the packet cannot tell the difference between
   what was an absent Packet TLV Block, and what was an empty Packet TLV
   Block when removing and verifying the ICV Packet TLV if no other
   Packet TLVs are present.




<span class="grey">Herberg, et al.              Standards Track                    [Page 9]</span>

<span id="page-10" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>.  TIMESTAMP Packet TLV</span>

   A TIMESTAMP Packet TLV is an example of a Timestamp TLV as described
   in <a href="#section-7">Section 7</a>.  If a packet contains one or more TIMESTAMP TLVs and
   one or more ICV TLVs, then the TIMESTAMP TLVs (as well as any other
   Packet TLVs) MUST be added to the packet before the ICV TLVs, in
   order to include the timestamps and other TLVs in the calculation of
   the ICVs.

<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>.  Message TLVs</span>

   Two Message TLVs are defined: one for including the cryptographic ICV
   of a message and one for including the timestamp indicating the time
   at which the cryptographic ICV was calculated.

<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>.  ICV Message TLV</span>

   An ICV Message TLV is an example of an ICV TLV as described in
   <a href="#section-6">Section 6</a>.  When determining the <ICV-value> for a message, the
   following considerations MUST be applied:

   o  The fields <msg-hop-limit> and <msg-hop-count>, if present in the
      Message Header, MUST both be assumed to have the value 0 (zero)
      when calculating the ICV.

   o  Any ICV Message TLVs already present in the Message TLV Block MUST
      be removed before calculating the ICV, and the message size as
      well as the Message TLV Block size MUST be recalculated
      accordingly.  Also, all relevant TLVs other than ICV TLVs MUST be
      added prior to ICV value calculation.

   o  Any removed ICV Message TLVs MUST be restored after having
      calculated the ICV, and the message size as well as the Message
      TLV Block size MUST be recalculated accordingly.

   The rationale for removing any ICV Message TLVs already present prior
   to calculating the ICV is that several ICV TLVs may be added to the
   same message, e.g., using different ICV cryptographic and/or hash
   functions.

<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>.  TIMESTAMP Message TLV</span>

   A TIMESTAMP Message TLV is an example of a Timestamp TLV as described
   in <a href="#section-7">Section 7</a>.  If a message contains one or more TIMESTAMP TLVs and
   one or more ICV TLVs, then the TIMESTAMP TLVs (as well as any other
   Message TLVs) MUST be added to the message before the ICV TLVs, in
   order to include the timestamps and other Message TLVs in the
   calculation of the ICV.



<span class="grey">Herberg, et al.              Standards Track                   [Page 10]</span>

<span id="page-11" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>.  Address Block TLVs</span>

   Two Address Block TLVs are defined: one for associating a
   cryptographic ICV to one or more addresses and their associated
   information and one for including the timestamp indicating the time
   at which the cryptographic ICV was calculated.

<span class="h3"><a class="selflink" id="section-10.1" href="#section-10.1">10.1</a>.  ICV Address Block TLV</span>

   An ICV Address Block TLV is an example of an ICV TLV as described in
   <a href="#section-6">Section 6</a>.  The ICV is calculated over one or more addresses,
   concatenated with any other values -- for example, other Address
   Block TLV <value> fields -- associated with those addresses.  A MANET
   routing protocol, or MANET routing protocol extension, using ICV
   Address Block TLVs MUST specify how to include any such concatenated
   attributes of the addresses in the calculation and verification
   processes for the ICV.  When determining an <ICV-value> for one or
   more addresses, the following consideration MUST be applied:

   o  If other TLV values are concatenated with the addresses for
      calculating the ICV, the corresponding TLVs MUST NOT be ICV
      Address Block TLVs already associated with any of the addresses.

   The rationale for not concatenating the addresses with any ICV TLV
   values already associated with the addresses when calculating the ICV
   is that several ICVs may be added to the same address or addresses,
   e.g., using different ICV cryptographic and/or hash functions, and
   the order of addition is not known to the recipient.

<span class="h3"><a class="selflink" id="section-10.2" href="#section-10.2">10.2</a>.  TIMESTAMP Address Block TLV</span>

   A TIMESTAMP Address Block TLV is an example of a Timestamp TLV as
   described in <a href="#section-7">Section 7</a>.  If one or more TIMESTAMP TLVs and one or
   more ICV TLVs are associated with an address, the relevant TIMESTAMP
   TLV <time-value>(s) MUST be included before calculating the value of
   the ICV to be contained in the ICV TLV value (i.e., concatenated with
   the associated addresses and any other values as described in
   <a href="#section-10.1">Section 10.1</a>).

<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>.  ICV: Basic</span>

   The basic ICV, represented by way of an ICV TLV with type
   extension = 0, has as TLV value a simple bit-field without specified
   structure (i.e, without explicitly included hash function, crypto
   function, key ID or other parameters).  Moreover, it is not specified
   how to calculate the <ICV-value>.  It is assumed that the mechanism
   specifying how ICVs are calculated and verified, as well as which
   parameters (if any) need to be exchanged prior to using the TLV with



<span class="grey">Herberg, et al.              Standards Track                   [Page 11]</span>

<span id="page-12" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   type extension = 0, is established outside of this specification,
   e.g., by administrative configuration or external out-of-band
   signaling.

   The <ICV-value>, when using type extension = 0, is:

      <ICV-value> := <ICV-data>

   where:

      <ICV-data> is a field, of length <length> octets (or single-length
      octets in a multivalue Address Block TLV) that contains the
      cryptographic ICV.

<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>.  ICV: Hash Function and Cryptographic Function</span>

   One common way of calculating an ICV is combining a cryptographic
   function and a hash function applied to the content.  This
   decomposition is specified in this section, using either type
   extension = 1 or type extension = 2, in the ICV TLVs.

<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>.  General ICV TLV Structure</span>

   The following data structure allows representation of a cryptographic
   ICV, including specification of the appropriate hash function and
   cryptographic function used for calculating the ICV:

      <ICV-value> := <hash-function>
                     <cryptographic-function>
                     <key-id-length>
                     <key-id>?
                     <ICV-data>

   where:

      <hash-function> is a one-octet unsigned integer field specifying
      the hash function.

      <cryptographic-function> is a one-octet unsigned integer field
      specifying the cryptographic function.

      <key-id-length> is a one-octet unsigned integer field specifying
      the length of the <key-id> field as a number of octets.  The value
      zero (0x00) is reserved for using a single pre-installed, shared
      key.






<span class="grey">Herberg, et al.              Standards Track                   [Page 12]</span>

<span id="page-13" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      <key-id> is a field specifying the key identifier of the key that
      was used to calculate the ICV of the message, which allows unique
      identification of different keys with the same originator.  It is
      the responsibility of each key originator to make sure that
      actively used keys that it issues have distinct key identifiers.
      If <key-id-length> equals zero (0x00), the <key-id> field is not
      contained in the TLV, and a single pre-installed, shared key is
      used.

      <ICV-data> is a field with length <length> - 3 - <key-id-length>
      octets (except in a multivalue Address Block TLV, in which it is
      single-length - 3 - <key-id-length> octets) and that contains the
      cryptographic ICV.

   The version of this TLV, specified in this section, assumes that,
   unless otherwise specified, calculating the ICV can be decomposed
   into:

      ICV-value = cryptographic-function(hash-function(content))

   In some cases, a different combination of cryptographic function and
   hash function may be specified.  This is the case for the Hashed
   Message Authentication Code (HMAC) function, which is specified as
   defined in <a href="#section-13.12">Section 13.12</a>, using the hash function twice.  Using
   cryptographic-function "none" is provided for symmetry and possible
   future use, but it SHOULD NOT be used with any currently specified
   hash function.

   The difference between the two type extensions is that in addition to
   the information covered by the ICV using type extension = 1 (which is
   detailed in the following sections), the ICV using type extension = 2
   also MUST cover the source address of the IP datagram carrying the
   corresponding packet, message, or Address Block.

   The <ICV-data> field MAY be truncated after being calculated, this is
   indicated by its length, calculated as described above.  The
   truncation MUST be as specified for the relevant cryptographic
   function (and, if appropriate, hash function).

   o  When using truncation, the guidelines for minimal ICV length set
      out in [<a href="#ref-NIST-SP-800-107">NIST-SP-800-107</a>] MUST be followed.  In particular the
      <ICV-data> field when using HMAC MUST NOT be truncated below 4
      octets.

   o  The truncated ICV length MUST be so large that the probability of
      success of a dictionary attack is acceptably small.  Such a
      success will arise if the ICV of a spoofed packet or message is
      verified.  The probability of success is a function of (a) how



<span class="grey">Herberg, et al.              Standards Track                   [Page 13]</span>

<span id="page-14" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      many routers can be attacked, (b) how fast a router can receive
      packets or messages and attempt to verify their ICV, (c) the
      truncated ICV length, and (d) the lifetime of the network.  If the
      truncated ICV length in bits is L, then 2^L packets or messages
      are required to attack with certainty of success.  With a
      verification rate of R packets/messages per second, applied to N
      routers over an available time of T, the probability of success is
      given by NRT/2^L.  If this is not to exceed a probability of P,
      then L > log2(NRT/P).  For example, if N is 32, R is 1000, T is
      86400 (I day) and P is 10^-6, then L must be at least 52 bits.

   Some of the cryptographic and hash functions listed in <a href="#section-13">Section 13</a>
   require the length of the content to be digitally signed to be a
   multiple of a certain number of octets.  As a consequence, they
   specify padding mechanisms, e.g., AES-CMAC [<a href="./rfc4493" title=""The AES-CMAC Algorithm"">RFC4493</a>] specifies a
   padding mechanism for message lengths that are not equal to a
   multiple of 16 octets.  Implementations of the framework in this
   document MUST support appropriate padding mechanisms, as specified in
   the cryptographic or hash function specifications.

   The hash function and the cryptographic function correspond to the
   entries in two IANA registries, which are described in <a href="#section-13">Section 13</a>.

<span class="h4"><a class="selflink" id="section-12.1.1" href="#section-12.1.1">12.1.1</a>.  Rationale</span>

   The rationale for separating the hash function and the cryptographic
   function into two octets instead of having all combinations in a
   single octet -- possibly as a TLV type extension -- is that adding
   further hash functions or cryptographic functions in the future may
   lead to a non-contiguous number space as well as a smaller overall
   space.

   The rationale for not including a field that lists parameters of the
   cryptographic ICV in the TLV is that, before being able to validate a
   cryptographic ICV, routers have to exchange or acquire keys.  Any
   additional parameters can be provided together with the keys in that
   bootstrap process.  Therefore, it is not necessary, and would even
   entail an extra overhead, to transmit the parameters within every
   message.

   The rationale for the addition of type extension = 2 is that the
   source address is used in some cases, such as when processing HELLO
   messages in [<a href="./rfc6130" title=""Mobile Ad Hoc Network (MANET) Neighborhood Discovery Protocol (NHDP)"">RFC6130</a>].  This is applicable only to packets (which
   only ever travel one hop) and messages (and their Address Blocks)
   that only travel one hop.  It is not applicable to messages that may
   be forwarded more than one hop, such as Topology Control (TC)
   messages in [<a href="./rfc7181" title=""The Optimized Link State Routing Protocol Version 2"">RFC7181</a>].




<span class="grey">Herberg, et al.              Standards Track                   [Page 14]</span>

<span id="page-15" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h4"><a class="selflink" id="section-12.1.2" href="#section-12.1.2">12.1.2</a>.  Parameters</span>

   As described in <a href="#section-12.1.1">Section 12.1.1</a>, parameters are selected
   administratively on each router before using this framework in a
   MANET, in addition to exchanging the keys between MANET routers.
   This was a design decision in [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] and is kept in this
   specification for reasons of backwards compatibility.

   The following parameters are RECOMMENDED and SHOULD be those chosen
   administratively, unless there are good reasons otherwise:

   o  For crypto function RSA:

      *  Signature scheme: RSASSA-PSS with the default parameters:
         rSASSA-PSS-Default-Identifier (as defined in [<a href="./rfc3447" title=""Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1"">RFC3447</a>])

      *  Common exponent: 65537

   o  For crypto function ECDSA:

      *  Curve name: exchanged as part of key distribution

      *  Hash function: The hash function MUST be pinned to the curve,
         i.e., use SHA-256 for the p-256 curve, SHA-384 for p-384, etc.

   o  For crypto function AES:

      *  Authentication algorithm: Cipher-Based Message Authentication
         Code (CMAC) (as defined in [<a href="./rfc4493" title=""The AES-CMAC Algorithm"">RFC4493</a>])

      *  Hash function: None

<span class="h3"><a class="selflink" id="section-12.2" href="#section-12.2">12.2</a>.  Considerations for Calculating the ICV</span>

   The considerations listed in the following subsections MUST be
   applied when calculating the ICV for Packet, Message, and Address
   Block TLVs, respectively.

<span class="h4"><a class="selflink" id="section-12.2.1" href="#section-12.2.1">12.2.1</a>.  ICV Packet TLV</span>

   When determining the <ICV-data> for a packet, with type
   extension = 1:

   o  The ICV is calculated over the fields <hash-function>,
      <cryptographic-function>, <key-id-length>, and -- if present --
      <key-id> (in that order), followed by the entire packet, including





<span class="grey">Herberg, et al.              Standards Track                   [Page 15]</span>

<span id="page-16" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      the Packet Header, including all Packet TLVs (other than ICV
      Packet TLVs), and all included messages.  The considerations of
      <a href="#section-8.1">Section 8.1</a> MUST be applied.

   When determining the <ICV-data> for a packet, with type
   extension = 2:

   o  The same procedure as for type extension = 1 is used, except that
      the data used consists of a representation of the source address
      of the IP datagram carrying the packet, followed by the remaining
      data (as for type extension = 1).  The representation of the
      source address consists of a single octet containing the address
      length, in octets, followed by that many octets containing the
      address in network byte order.

<span class="h4"><a class="selflink" id="section-12.2.2" href="#section-12.2.2">12.2.2</a>.  ICV Message TLV</span>

   When determining the <ICV-data> for a message, with type
   extension = 1:

   o  The ICV is calculated over the fields <hash-function>,
      <cryptographic-function>, <key-id-length>, and -- if present --
      <key-id> (in that order), followed by the entire message.  The
      considerations in <a href="#section-9.1">Section 9.1</a> MUST be applied.

   When determining the <ICV-data> for a message, with type
   extension = 2:

   o  The same procedure as for type extension = 1 is used, except that
      the data used consists of a representation of the source address
      of the IP datagram carrying the message, followed by the remaining
      data (as for type extension = 1).  The representation of the
      source address consists of a single octet containing the address
      length, in octets, followed by that many octets containing the
      address in network byte order.

<span class="h4"><a class="selflink" id="section-12.2.3" href="#section-12.2.3">12.2.3</a>.  ICV Address Block TLV</span>

   When determining the <ICV-data> for one or more addresses, with type
   extension = 1:

   o  The ICV is calculated over the fields <hash-function>,
      <cryptographic-function>, <key-id-length>, and -- if present --
      <key-id> (in that order), followed by the addresses, and followed
      by any other values -- for example, other Address Block TLV
      <value>s that are associated with those addresses.  A MANET
      routing protocol, or MANET routing protocol extension, using ICV
      Address Block TLVs MUST specify how to include any such



<span class="grey">Herberg, et al.              Standards Track                   [Page 16]</span>

<span id="page-17" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      concatenated attribute of the addresses in the verification
      process of the ICV.  The consideration in <a href="#section-10.1">Section 10.1</a> MUST be
      applied.

   When determining the <ICV-data> for one or more addresses, with type
   extension = 2:

   o  The same procedure as for type extension = 1 is used, except that
      the data used consists of a representation of the source address
      of the IP datagram carrying the Address Block, followed by the
      remaining data (as for type extension = 1).  The representation of
      the source address consists of a single octet containing the
      address length, in octets, followed by that many octets containing
      the address in network byte order.

<span class="h3"><a class="selflink" id="section-12.3" href="#section-12.3">12.3</a>.  Example of a Message Including an ICV</span>

   The sample message depicted in Figure 1 is derived from <a href="./rfc5444#appendix-E">Appendix E of
   [RFC5444]</a>.  The message contains an ICV Message TLV, with the value
   representing an ICV that is 16 octets long and a key identifier that
   is 4 octets long.  The type extension of the Message TLV is 1, for
   the specific decomposition of an ICV using a cryptographic function
   and a hash function, as specified in <a href="#section-12">Section 12</a>.




























<span class="grey">Herberg, et al.              Standards Track                   [Page 17]</span>

<span id="page-18" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


      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
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Message Type  | MF=15 | MAL=3 |      Message Length = 82      |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                  Message Originator Address                   |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |   Hop Limit   |   Hop Count   |    Message Sequence Number    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Message TLV Block Length = 36 |   TLV Type    |  MTLVF = 16   |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Value Len = 6 |                     Value                     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                 Value (cont)                  |TLV Type = ICV |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  MTLVF = 144  |  MTLVExt = 1  |Value Len = 23 |   Hash Func   |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Crypto Func  | KeyID Len = 4 |        Key Identifier         |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |     Key Identifier (cont)     |           ICV Value           |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       ICV Value (cont)                        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       ICV Value (cont)                        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                       ICV Value (cont)                        |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |       ICV Value (cont)        | Num Addr = 2  |   ABF = 48    |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Tail Len = 2  |             Mid 0             |     Mid 1     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Mid 1 (cont)  | Prefix Length |    ABTLV Block Length = 0     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Num Addr = 3  |   ABF = 128   | Head Len = 2  |     Head      |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Head (cont)  |             Mid 0             |     Mid 1     |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | Mid 1 (cont)  |             Mid 2             |ABTLV Block ...|
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |... Length = 9 |   TLV Type    |  ABTLVF = 16  | Value Len = 2 |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |             Value             |   TLV Type    |  ABTLVF = 32  |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |  Index Start  |  Index Stop   |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Figure 1: Example Message with ICV




<span class="grey">Herberg, et al.              Standards Track                   [Page 18]</span>

<span id="page-19" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   MF:      Message Flags, see <a href="./rfc5444#section-5.2">Section 5.2 of [RFC5444]</a>.
   MAL:     Message Address Length, see <a href="./rfc5444#section-5.2">Section 5.2 of [RFC5444]</a>.
   MTLVF:   Message TLV Flags, see <a href="./rfc5444#section-5.4.1">Section 5.4.1 of [RFC5444]</a>.
   MTLVExt: Message TLV Type Extension, see <a href="./rfc5444#section-5.4.1">Section 5.4.1 of [RFC5444]</a>.
   AF:      Address Block Flags, see <a href="./rfc5444#section-5.3">Section 5.3 of [RFC5444]</a>.
   ABTLV:   Address Block TLV, see <a href="./rfc5444#section-5.4">Section 5.4 of [RFC5444]</a>.
   ABTLVF:  Address Block TLV Flags, see <a href="./rfc5444#section-5.4.1">Section 5.4.1 of [RFC5444]</a>.

                     Example Message with ICV - Legend

<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>.  IANA Considerations</span>

   The IANA registrations for TLV Types and the TLV type extension
   registries given in this specification replace the identical
   registrations and registries from [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>].

   This specification defines the following TLV Types, replacing the
   original specifications in [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>]:

   o  Two Packet TLV Types, which have been allocated from the 0-223
      range of the "Packet TLV Types" repository of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], as
      specified in Table 1.

   o  Two Message TLV Types, which have been allocated from the 0-127
      range of the "Message TLV Types" repository of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], as
      specified in Table 2.

   o  Two Address Block TLV Types, which have been allocated from the
      0-127 range of the "Address Block TLV Types" repository of
      [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>], as specified in Table 3.

   This specification updates the following registries that were created
   in [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>]:

   o  A type extension registry for each of these TLV types with values
      as listed in Tables 1, 2, and 3.

   The following terms are used as defined in [<a href="#ref-BCP26" title="">BCP26</a>]: "Namespace",
   "Registration", and "Designated Expert".

   The following policy is used as defined in [<a href="#ref-BCP26" title="">BCP26</a>]: "Expert Review".

<span class="h3"><a class="selflink" id="section-13.1" href="#section-13.1">13.1</a>.  Expert Review: Evaluation Guidelines</span>

   For TLV type extensions registries where an Expert Review is
   required, the Designated Expert SHOULD take the same general
   recommendations into consideration as those specified by [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].




<span class="grey">Herberg, et al.              Standards Track                   [Page 19]</span>

<span id="page-20" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   For both TIMESTAMP and ICV TLVs, functionally similar extensions for
   Packet, Message, and Address Block TLVs SHOULD be numbered
   identically.

<span class="h3"><a class="selflink" id="section-13.2" href="#section-13.2">13.2</a>.  Packet TLV Types</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "Packet TLV Types" namespace of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] for the Packet TLVs
   specified in Table 1.  IANA has modified this allocation as
   indicated.

                    +------+-------------+-----------+
                    | Type | Description | Reference |
                    +------+-------------+-----------+
                    |  5   |     ICV     |  <a href="./rfc7182">RFC 7182</a> |
                    |  6   |  TIMESTAMP  |  <a href="./rfc7182">RFC 7182</a> |
                    +------+-------------+-----------+

                         Table 1: Packet TLV Types

<span class="h3"><a class="selflink" id="section-13.3" href="#section-13.3">13.3</a>.  Message TLV Types</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "Message TLV Types" namespace of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] for the Message TLVs
   specified in Table 2.  IANA has modified this allocation as
   indicated.

                    +------+-------------+-----------+
                    | Type | Description | Reference |
                    +------+-------------+-----------+
                    |  5   |     ICV     |  <a href="./rfc7182">RFC 7182</a> |
                    |  6   |  TIMESTAMP  |  <a href="./rfc7182">RFC 7182</a> |
                    +------+-------------+-----------+

                        Table 2: Message TLV Types

<span class="h3"><a class="selflink" id="section-13.4" href="#section-13.4">13.4</a>.  Address Block TLV Types</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "Address Block TLV Types" namespace of [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>] for the Packet TLVs
   specified in Table 3.  IANA has modified this allocation as
   indicated.









<span class="grey">Herberg, et al.              Standards Track                   [Page 20]</span>

<span id="page-21" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


                    +------+-------------+-----------+
                    | Type | Description | Reference |
                    +------+-------------+-----------+
                    |  5   |     ICV     |  <a href="./rfc7182">RFC 7182</a> |
                    |  6   |  TIMESTAMP  |  <a href="./rfc7182">RFC 7182</a> |
                    +------+-------------+-----------+

                     Table 3: Address Block TLV Types

<span class="h3"><a class="selflink" id="section-13.5" href="#section-13.5">13.5</a>.  ICV Packet TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "ICV Packet TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] for the
   Packet TLVs specified in Table 4.  IANA has modified this allocation
   (including defining type extension = 2) as indicated.

   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |              ICV of a packet              |  <a href="./rfc7182">RFC 7182</a> |
   |     1     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           | hash function, as specified in <a href="#section-12">Section 12</a> |           |
   |           |              of this document             |           |
   |     2     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           |    hash function, and including the IP    |           |
   |           |  datagram source address, as specified in |           |
   |           |        <a href="#section-12">Section 12</a> of this document        |           |
   |   3-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

                  Table 4: ICV Packet TLV Type Extensions

   More than one ICV Packet TLV with the same type extension MAY be
   included in a packet if these represent different ICV calculations
   (e.g., with type extension 1 or 2 and different cryptographic
   function and/or hash function or with a different key identifier).
   ICV Packet TLVs that carry what is declared to be the same
   information MUST NOT be included in the same packet.

<span class="h3"><a class="selflink" id="section-13.6" href="#section-13.6">13.6</a>.  TIMESTAMP Packet TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "TIMESTAMP Packet TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] for the
   Packet TLVs specified in Table 5.  IANA has modified this allocation
   as indicated.




<span class="grey">Herberg, et al.              Standards Track                   [Page 21]</span>

<span id="page-22" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |  Unsigned timestamp of arbitrary length,  |  <a href="./rfc7182">RFC 7182</a> |
   |           | given by the TLV Length field.  The MANET |           |
   |           |   routing protocol has to define how to   |           |
   |           |          interpret this timestamp         |           |
   |     1     |  Unsigned 32-bit timestamp, as specified  |  <a href="./rfc7182">RFC 7182</a> |
   |           |            in [<a href="#ref-IEEE1003.1-2008">IEEE1003.1-2008</a>]           |           |
   |     2     |   NTP timestamp format, as specified in   |  <a href="./rfc7182">RFC 7182</a> |
   |           |                 [<a href="./rfc5905" title=""Network Time Protocol Version 4: Protocol and Algorithms Specification"">RFC5905</a>]                 |           |
   |     3     | Signed timestamp of arbitrary length with |  <a href="./rfc7182">RFC 7182</a> |
   |           |  no constraints such as monotonicity.  In |           |
   |           |  particular, it may represent any random  |           |
   |           |                   value                   |           |
   |   4-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

               Table 5: TIMESTAMP Packet TLV Type Extensions

   More than one TIMESTAMP Packet TLV with the same type extension MUST
   NOT be included in a packet.

<span class="h3"><a class="selflink" id="section-13.7" href="#section-13.7">13.7</a>.  ICV Message TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "ICV Message TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] for the
   Message TLVs specified in Table 6.  IANA has modified this allocation
   (including defining type extension = 2) as indicated.




















<span class="grey">Herberg, et al.              Standards Track                   [Page 22]</span>

<span id="page-23" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |              ICV of a message             |  <a href="./rfc7182">RFC 7182</a> |
   |     1     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           | hash function, as specified in <a href="#section-12">Section 12</a> |           |
   |           |              of this document             |           |
   |     2     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           |    hash function, and including the IP    |           |
   |           |  datagram source address, as specified in |           |
   |           |        <a href="#section-12">Section 12</a> of this document        |           |
   |   3-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

                 Table 6: ICV Message TLV Type Extensions

   More than one ICV Message TLV with the same type extension MAY be
   included in a message if these represent different ICV calculations
   (e.g., with type extension 1 or 2 and different cryptographic
   function and/or hash function or with a different key identifier).
   ICV Message TLVs that carry what is declared to be the same
   information MUST NOT be included in the same message.

<span class="h3"><a class="selflink" id="section-13.8" href="#section-13.8">13.8</a>.  TIMESTAMP Message TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "TIMESTAMP Message TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] for
   the Message TLVs specified in Table 7.  IANA has modified this
   allocation as indicated.




















<span class="grey">Herberg, et al.              Standards Track                   [Page 23]</span>

<span id="page-24" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |  Unsigned timestamp of arbitrary length,  |  <a href="./rfc7182">RFC 7182</a> |
   |           | given by the TLV Length field.  The MANET |           |
   |           |   routing protocol has to define how to   |           |
   |           |          interpret this timestamp         |           |
   |     1     |  Unsigned 32-bit timestamp, as specified  |  <a href="./rfc7182">RFC 7182</a> |
   |           |         in POSIX [<a href="#ref-IEEE1003.1-2008">IEEE1003.1-2008</a>]        |           |
   |     2     |   NTP timestamp format, as specified in   |  <a href="./rfc7182">RFC 7182</a> |
   |           |                 [<a href="./rfc5905" title=""Network Time Protocol Version 4: Protocol and Algorithms Specification"">RFC5905</a>]                 |           |
   |     3     | Signed timestamp of arbitrary length with |  <a href="./rfc7182">RFC 7182</a> |
   |           |  no constraints such as monotonicity.  In |           |
   |           |  particular, it may represent any random  |           |
   |           |                   value                   |           |
   |   4-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

              Table 7: TIMESTAMP Message TLV Type Extensions

   More than one TIMESTAMP Message TLV with the same type extension MUST
   NOT be included in a message.

<span class="h3"><a class="selflink" id="section-13.9" href="#section-13.9">13.9</a>.  ICV Address Block TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "ICV Address Block TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] for
   the Address Block TLVs specified in Table 8.  IANA has modified this
   allocation (including defining type extension = 2) as indicated.




















<span class="grey">Herberg, et al.              Standards Track                   [Page 24]</span>

<span id="page-25" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |    ICV of an object (e.g., an address)    |  <a href="./rfc7182">RFC 7182</a> |
   |     1     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           | hash function, as specified in <a href="#section-12">Section 12</a> |           |
   |           |              of this document             |           |
   |     2     | ICV, using a cryptographic function and a |  <a href="./rfc7182">RFC 7182</a> |
   |           |    hash function, and including the IP    |           |
   |           |  datagram source address, as specified in |           |
   |           |        <a href="#section-12">Section 12</a> of this document        |           |
   |   3-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

              Table 8: ICV Address Block TLV Type Extensions

   More than one ICV Address Block TLV with the same type extension MAY
   be associated with an address if these represent different ICV
   calculations (e.g., with type extension = 1 or type extension = 2 and
   different cryptographic function and/or hash function or with a
   different key identifier).  ICV Address Block TLVs that carry what is
   declared to be the same information MUST NOT be associated with the
   same address.

<span class="h3"><a class="selflink" id="section-13.10" href="#section-13.10">13.10</a>.  TIMESTAMP Address Block TLV Type Extensions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], made allocations from the
   "TIMESTAMP Address Block TLV Type Extensions" namespace of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>]
   for the Address Block TLVs specified in Table 9.  IANA has modified
   this allocation as indicated.



















<span class="grey">Herberg, et al.              Standards Track                   [Page 25]</span>

<span id="page-26" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +-----------+-------------------------------------------+-----------+
   |    Type   |                Description                | Reference |
   | Extension |                                           |           |
   +-----------+-------------------------------------------+-----------+
   |     0     |  Unsigned timestamp of arbitrary length,  |  <a href="./rfc7182">RFC 7182</a> |
   |           | given by the TLV Length field.  The MANET |           |
   |           |   routing protocol has to define how to   |           |
   |           |          interpret this timestamp         |           |
   |     1     |  Unsigned 32-bit timestamp, as specified  |  <a href="./rfc7182">RFC 7182</a> |
   |           |         in POSIX [<a href="#ref-IEEE1003.1-2008">IEEE1003.1-2008</a>]        |           |
   |     2     |   NTP timestamp format, as specified in   |  <a href="./rfc7182">RFC 7182</a> |
   |           |                 [<a href="./rfc5905" title=""Network Time Protocol Version 4: Protocol and Algorithms Specification"">RFC5905</a>]                 |           |
   |     3     | Signed timestamp of arbitrary length with |  <a href="./rfc7182">RFC 7182</a> |
   |           |  no constraints such as monotonicity.  In |           |
   |           |  particular, it may represent any random  |           |
   |           |                   value                   |           |
   |   4-251   |         Unassigned; Expert Review         |           |
   |  252-255  |       Reserved for Experimental Use       |  <a href="./rfc7182">RFC 7182</a> |
   +-----------+-------------------------------------------+-----------+

           Table 9: TIMESTAMP Address Block TLV Type Extensions

   More than one TIMESTAMP Address Block TLV with the same type
   extension MUST NOT be associated with any address.

<span class="h3"><a class="selflink" id="section-13.11" href="#section-13.11">13.11</a>.  Hash Functions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], created a registry for hash
   functions that can be used when creating an ICV, as specified in
   <a href="#section-12">Section 12</a> of this document.  The initial assignments and allocation
   policies are specified in Table 10.  IANA has modified this
   allocation as indicated.



















<span class="grey">Herberg, et al.              Standards Track                   [Page 26]</span>

<span id="page-27" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   +---------+-----------+---------------------------------+-----------+
   |  Value  | Algorithm |           Description           | Reference |
   +---------+-----------+---------------------------------+-----------+
   |    0    |    none   |   The "identity function": The  |  <a href="./rfc7182">RFC 7182</a> |
   |         |           |  hash value of an object is the |           |
   |         |           |          object itself          |           |
   |    1    |   SHA-1   |        [<a href="#ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    2    |  SHA-224  |        [<a href="#ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    3    |  SHA-256  |        [<a href="#ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    4    |  SHA-384  |        [<a href="#ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    5    |  SHA-512  |        [<a href="#ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |  6-251  |           |    Unassigned; Expert Review    |           |
   | 252-255 |           |  Reserved for Experimental Use  |  <a href="./rfc7182">RFC 7182</a> |
   +---------+-----------+---------------------------------+-----------+

                     Table 10: Hash Function Registry

<span class="h3"><a class="selflink" id="section-13.12" href="#section-13.12">13.12</a>.  Cryptographic Functions</span>

   IANA has, in accordance with [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>], created a registry for the
   cryptographic functions, as specified in <a href="#section-12">Section 12</a> of this document.
   Initial assignments and allocation policies are specified in
   Table 11.  IANA has modified this allocation as indicated.

   +---------+-----------+---------------------------------+-----------+
   |  Value  | Algorithm |           Description           | Reference |
   +---------+-----------+---------------------------------+-----------+
   |    0    |    none   |   The "identity function": The  |  <a href="./rfc7182">RFC 7182</a> |
   |         |           |  value of an encrypted hash is  |           |
   |         |           |         the hash itself         |           |
   |    1    |    RSA    |            [<a href="./rfc3447" title=""Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1"">RFC3447</a>]            |  <a href="./rfc7182">RFC 7182</a> |
   |    2    |    DSA    |        [<a href="#ref-NIST-FIPS-186-4">NIST-FIPS-186-4</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    3    |    HMAC   |            [<a href="./rfc2104" title=""HMAC: Keyed- Hashing for Message Authentication"">RFC2104</a>]            |  <a href="./rfc7182">RFC 7182</a> |
   |    4    |    3DES   |         [<a href="#ref-NIST-SP-800-67">NIST-SP-800-67</a>]        |  <a href="./rfc7182">RFC 7182</a> |
   |    5    |    AES    |         [<a href="#ref-NIST-FIPS-197">NIST-FIPS-197</a>]         |  <a href="./rfc7182">RFC 7182</a> |
   |    6    |   ECDSA   |            [<a href="./rfc6090" title=""Fundamental Elliptic Curve Cryptography Algorithms"">RFC6090</a>]            |  <a href="./rfc7182">RFC 7182</a> |
   |  7-251  |           |    Unassigned; Expert Review    |           |
   | 252-255 |           |  Reserved for Experimental Use  |  <a href="./rfc7182">RFC 7182</a> |
   +---------+-----------+---------------------------------+-----------+

                 Table 11: Cryptographic Function Registry










<span class="grey">Herberg, et al.              Standards Track                   [Page 27]</span>

<span id="page-28" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>.  Security Considerations</span>

   This document does not specify a protocol.  It provides a syntactical
   component for cryptographic ICVs of messages and packets, as defined
   in [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].  It can be used to address security issues of a MANET
   routing protocol or MANET routing protocol extension.  As such, it
   has the same security considerations as [<a href="./rfc5444" title=""Generalized Mobile Ad Hoc Network (MANET) Packet/Message Format"">RFC5444</a>].

   In addition, a MANET routing protocol or MANET routing protocol
   extension that uses this specification MUST specify how to use the
   framework and the TLVs presented in this document.  In addition, the
   protection that the MANET routing protocol or MANET routing protocol
   extensions attain by using this framework MUST be described.

   As an example, a MANET routing protocol that uses this component to
   reject "badly formed" or "insecure" messages if a control message
   does not contain a valid ICV SHOULD indicate the security assumption
   that if the ICV is valid, the message is considered valid.  It also
   SHOULD indicate the security issues that are counteracted by this
   measure (e.g., link or identity spoofing) as well as the issues that
   are not counteracted (e.g., compromised keys).

<span class="h2"><a class="selflink" id="section-15" href="#section-15">15</a>.  Acknowledgements</span>

   The authors would like to thank Bo Berry (Cisco), Alan Cullen (BAE
   Systems), Justin Dean (NRL), Paul Lambert (Marvell), Jerome Milan
   (Ecole Polytechnique), and Henning Rogge (FGAN) for their
   constructive comments on [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>].

   The authors also appreciate the detailed reviews of [<a href="./rfc6622" title=""Integrity Check Value and Timestamp TLV Definitions for Mobile Ad Hoc Networks (MANETs)"">RFC6622</a>] from
   the Area Directors, in particular Stewart Bryant (Cisco), Stephen
   Farrell (Trinity College Dublin), and Robert Sparks (Tekelec), as
   well as Donald Eastlake (Huawei) from the Security Directorate.

   The authors would like to thank Justin Dean (NRL) and Henning Rogge
   (FGAN) for their constructive comments on this specification.















<span class="grey">Herberg, et al.              Standards Track                   [Page 28]</span>

<span id="page-29" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


<span class="h2"><a class="selflink" id="section-16" href="#section-16">16</a>.  References</span>

<span class="h3"><a class="selflink" id="section-16.1" href="#section-16.1">16.1</a>.  Normative References</span>

   [<a id="ref-BCP26">BCP26</a>]    Narten, T. and H. Alvestrand, "Guidelines for Writing an
              IANA Considerations Section in RFCs", <a href="https://www.rfc-editor.org/bcp/bcp26">BCP 26</a>, <a href="./rfc5226">RFC 5226</a>,
              May 2008.

   [<a id="ref-IEEE1003.1-2008">IEEE1003.1-2008</a>]
              IEEE, "Portable Operating System Interface (POSIX)", IEEE
              1003.1-2008, Base Specifications, Issue 7, December 2008.

   [<a id="ref-NIST-FIPS-180-4">NIST-FIPS-180-4</a>]
              National Institute of Standards and Technology, "Secure
              Hash Standard (SHS)", FIPS 180-4, March 2012.

   [<a id="ref-NIST-FIPS-186-4">NIST-FIPS-186-4</a>]
              National Institute of Standards and Technology, "Digital
              Signature Standard (DSS)", FIPS 186-4, July 2013.

   [<a id="ref-NIST-FIPS-197">NIST-FIPS-197</a>]
              National Institute of Standards and Technology,
              "Specification for the Advanced Encryption Standard
              (AES)", FIPS 197, November 2001.

   [<a id="ref-NIST-SP-800-107">NIST-SP-800-107</a>]
              National Institute of Standards and Technology,
              "Recommendation for Applications Using Approved Hash
              Algorithms", SP 800-107, Revision 1, August 2012.

   [<a id="ref-NIST-SP-800-67">NIST-SP-800-67</a>]
              National Institute of Standards and Technology,
              "Recommendation for the Triple Data Encryption Algorithm
              (TDEA) Block Cipher", Special Publication 800-67, Revision
              1, January 2012.

   [<a id="ref-RFC2104">RFC2104</a>]  Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-
              Hashing for Message Authentication", <a href="./rfc2104">RFC 2104</a>, February
              1997.

   [<a id="ref-RFC2119">RFC2119</a>]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.

   [<a id="ref-RFC3447">RFC3447</a>]  Jonsson, J. and B. Kaliski, "Public-Key Cryptography
              Standards (PKCS) #1: RSA Cryptography Specifications
              Version 2.1", <a href="./rfc3447">RFC 3447</a>, February 2003.





<span class="grey">Herberg, et al.              Standards Track                   [Page 29]</span>

<span id="page-30" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


   [<a id="ref-RFC4493">RFC4493</a>]  Song, JH., Poovendran, R., Lee, J., and T. Iwata, "The
              AES-CMAC Algorithm", <a href="./rfc4493">RFC 4493</a>, June 2006.

   [<a id="ref-RFC5444">RFC5444</a>]  Clausen, T., Dearlove, C., Dean, J., and C. Adjih,
              "Generalized Mobile Ad Hoc Network (MANET) Packet/Message
              Format", <a href="./rfc5444">RFC 5444</a>, February 2009.

   [<a id="ref-RFC5905">RFC5905</a>]  Mills, D., Martin, J., Burbank, J., and W. Kasch, "Network
              Time Protocol Version 4: Protocol and Algorithms
              Specification", <a href="./rfc5905">RFC 5905</a>, June 2010.

   [<a id="ref-RFC6090">RFC6090</a>]  McGrew, D., Igoe, K., and M. Salter, "Fundamental Elliptic
              Curve Cryptography Algorithms", <a href="./rfc6090">RFC 6090</a>, February 2011.

<span class="h3"><a class="selflink" id="section-16.2" href="#section-16.2">16.2</a>.  Informative References</span>

   [<a id="ref-RFC6130">RFC6130</a>]  Clausen, T., Dearlove, C., and J. Dean, "Mobile Ad Hoc
              Network (MANET) Neighborhood Discovery Protocol (NHDP)",
              <a href="./rfc6130">RFC 6130</a>, April 2011.

   [<a id="ref-RFC6622">RFC6622</a>]  Herberg, U. and T. Clausen, "Integrity Check Value and
              Timestamp TLV Definitions for Mobile Ad Hoc Networks
              (MANETs)", <a href="./rfc6622">RFC 6622</a>, May 2012.

   [<a id="ref-RFC7181">RFC7181</a>]  Clausen, T., Dearlove, C., Jacquet, P., and U. Herberg,
              "The Optimized Link State Routing Protocol Version 2", <a href="./rfc7181">RFC</a>
              <a href="./rfc7181">7181</a>, April 2014.
























<span class="grey">Herberg, et al.              Standards Track                   [Page 30]</span>

<span id="page-31" ></span>
<span class="grey"><a href="./rfc7182">RFC 7182</a>            ICV and Timestamp TLVs for MANETs         April 2014</span>


Authors' Addresses

   Ulrich Herberg
   Fujitsu Laboratories of America
   1240 E. Arques Ave.
   Sunnyvale, CA  94085
   USA

   EMail: [email protected]
   URI:   <a href="http://www.herberg.name/">http://www.herberg.name/</a>


   Thomas Heide Clausen
   LIX, Ecole Polytechnique
   91128 Palaiseau Cedex
   France

   Phone: +33 6 6058 9349
   EMail: [email protected]
   URI:   <a href="http://www.thomasclausen.org/">http://www.thomasclausen.org/</a>


   Christopher Dearlove
   BAE Systems Advanced Technology Centre
   West Hanningfield Road
   Great Baddow, Chelmsford
   United Kingdom

   Phone: +44 1245 242194
   EMail: [email protected]
   URI:   <a href="http://www.baesystems.com/">http://www.baesystems.com/</a>




















Herberg, et al.              Standards Track                   [Page 31]

Additional Resources