RFC 4383 - The Use of Timed Efficient Stream Loss-Tolerant A

时间:2006-11-02 来源: 作者: 点击:
NetworkWorkingGroupM.Baugher RequestforComments:4383Cisco Category:StandardsTrackE.Carrara RoyalInstituteofTechnology February2006 TheUseofTimedEfficientStreamLoss-TolerantAuthentication(TESLA) intheSecureReal-timeTransportProtocol(SRTP) StatusofThis
  Network Working Group                                         M. Baugher
Request for Comments: 4383                                         Cisco
Category: Standards Track                                     E. Carrara
                                                  Royal Institute of Technology
                                                                   February 2006

 The Use of Timed Efficient Stream Loss-Tolerant Authentication (TESLA)
           in the Secure Real-time Transport Protocol (SRTP)

Status of This Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2006).

Abstract

   This memo describes the use of the Timed Efficient Stream Loss-
   tolerant Authentication (RFC 4082) transform within the Secure Real-
   time Transport Protocol (SRTP), to provide data origin authentication
   for multicast and broadcast data streams.

Table of Contents

   1. Introduction ....................................................2
      1.1. Notational Conventions .....................................3
   2. SRTP ............................................................3
   3. TESLA ...........................................................4
   4. Usage of TESLA within SRTP ......................................5
      4.1. The TESLA Extension ........................................5
      4.2. SRTP Packet Format .........................................6
      4.3. Extension of the SRTP Cryptographic Context ................7
      4.4. SRTP Processing ............................................8
           4.4.1. Sender Processing ...................................9
           4.4.2. Receiver Processing .................................9
      4.5. SRTCP Packet Format .......................................11
      4.6. TESLA MAC .................................................13
      4.7. PRFs ......................................................13
   5. TESLA Bootstrapping and Cleanup ................................14
   6. SRTP TESLA Default Parameters ..................................14
   7. Security Considerations ........................................15
   8. Acknowledgements ...............................................16
   9. References .....................................................17
      9.1. Normative References ......................................17
      9.2. Informative References ....................................17

1.  Introduction

   Multicast and broadcast communications introduce some new security
   challenges compared to unicast communication.  Many multicast and
   broadcast applications need "data origin authentication" (DOA), or
   "source authentication", in order to guarantee that a received
   message had originated from a given source, and was not manipulated
   during the transmission.  In unicast communication, a pairwise
   security association between one sender and one receiver can provide
   data origin authentication using symmetric-key cryptography (such as
   a message authentication code, MAC).  When the communication is
   strictly pairwise, the sender and receiver agree upon a key that is
   known only to them.

   In groups, however, a key is shared among more than two members, and
   this symmetric-key approach does not guarantee data origin
   authentication.  When there is a group security association [RFC4046]
   instead of a pairwise security association, any of the members can
   alter the packet and impersonate any other member.  The MAC in this
   case only guarantees that the packet was not manipulated by an
   attacker outside the group (and hence not in possession of the group
   key), and that the packet was sent by a source within the group.

   Some applications cannot tolerate source ambiguity and need to
   identify the true sender from any other group member.  A common way
   to solve the problem is by use of asymmetric cryptography, such as
   digital signatures.  This method, unfortunately, suffers from high
   overhead in terms of time (to sign and verify) and bandwidth (to
   convey the signature in the packet).

   Several schemes have been proposed to provide efficient data origin
   authentication in multicast and broadcast scenarios.  The Timed
   Efficient Stream Loss-tolerant Authentication (TESLA) is one such
   scheme.

   This memo specifies TESLA authentication for SRTP.  SRTP TESLA can
   provide data origin authentication to RTP applications that use group
   security associations (such as multicast RTP applications) so long as
   receivers abide by the TESLA security invariants [RFC4082].

1.1.  Notational Conventions

   The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

   This specification assumes that the reader is familiar with both SRTP
   and TESLA.  Few of their details are explained in this document, and
   the reader can find them in their respective specifications,
   [RFC3711] and [RFC4082].  This specification uses the same
   definitions as TESLA for common terms and assumes that the reader is
   familiar with the TESLA algorithms and protocols [RFC4082].

2.  SRTP

   The Secure Real-time Transport Protocol (SRTP) [RFC3711] is a profile
   of RTP, which can provide confidentiality, message authentication,
   and replay protection to the RTP traffic and to the RTP control
   protocol, the Real-time Transport Control Protocol (RTCP).  Note that
   the term "SRTP" may often be used to indicate SRTCP as well.

   SRTP is a framework that allows new security functions and new
   transforms to be added.  SRTP currently does not define any mechanism
   to provide data origin authentication for group security
   associations.  Fortunately, it is straightforward to add TESLA to the
   SRTP cryptographic framework.

   The TESLA extension to SRTP is defined in this specification, which
   assumes that the reader is familiar with the SRTP specification
   [RFC3711], its packet structure, and its processing rules.  TESLA is

   an alternative message-authentication algorithm that authenticates
   messages from the source when a key is shared among two or more
   receivers.

3.  TESLA

   TESLA provides delayed per-packet data authentication and is
   specified in [RFC4082].

   In addition to its SRTP data-packet definition given here, TESLA
   needs an initial synchronization protocol and initial bootstrapping
   procedure.  The synchronization protocol allows the sender and the
   receiver to compare their clocks and determine an upper bound of the
   difference.  The synchronization protocol is outside the scope of
   this document.

   TESLA also requires an initial bootstrapping procedure to exchange
   needed parameters and the initial commitment to the key chain
   [RFC4082].  For SRTP, it is assumed that the bootstrapping is
   performed out-of-band, possibly using the key management protocol
   that is exchanging the security parameters for SRTP, e.g., [RFC3547,
   RFC3830].  Initial bootstrapping of TESLA is outside the scope of
   this document.

4.  Usage of TESLA within SRTP

   The present specification is an extension to the SRTP specification
   [RFC3711] and describes the use of TESLA with only a single key chain
   and delayed-authentication [RFC4082].

4.1.  The TESLA Extension

   TESLA is an OPTIONAL authentication transform for SRTP.  When used,
   TESLA adds the fields shown in Figure 1 per-packet.  The fields added
   by TESLA are called "TESLA authentication extensions," whereas
   "authentication tag" or "integrity protection tag" indicate the
   normal SRTP integrity protection tag, when the SRTP master key is
   shared by more than two endpoints [RFC3711].

   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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |                              i                                |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ~                         Disclosed Key                         ~
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   ~                           TESLA MAC                           ~
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

             Figure 1.  The "TESLA authentication extension".

   i: 32 bit, MANDATORY
      Identifier of the time interval i, corresponding to the key K_i,
      which is used to calculate the TESLA MAC of the current packet
      (and other packets sent in the current time interval i).

   Disclosed Key: variable length, MANDATORY
      The disclosed key (K_(i-d)), which can be used to authenticate
      previous packets from earlier time intervals [RFC4082].  A
      Section 4.3 parameter establishes the size of this field.

   TESLA MAC (Message Authentication Code): variable length, MANDATORY
      The MAC computed using the key K’_i (derived from K_i)
      [RFC4082], which is disclosed in a subsequent packet (in the
      Disclosed Key field).  The MAC coverage is defined in Section
      4.6.  A Section 4.3 parameter establishes the size of this
      field.

4.2.  SRTP Packet Format

   Figure 2 illustrates the format of the SRTP packet when TESLA is
   applied.  When applied to RTP, the TESLA authentication extension
   SHALL be inserted before the (optional) SRTP MKI and (recommended)
   authentication tag (SRTP MAC).

     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
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<+<+
  |V=2|P|X|  CC   |M|     PT      |       sequence number         | | |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
  |                           timestamp                           | | |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
  |           synchronization source (SSRC) identifier            | | |
  +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | |
  |            contributing source (CSRC) identifiers             | | |
  |                               ....                            | | |
  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
  |                   RTP extension (OPTIONAL)                    | | |
+>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
| |                          payload  ...                         | | |
| |                               +-------------------------------+ | |
| |                               | RTP padding   | RTP pad count | | |
+>+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<+ |
| |                            i                                  | | |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
| ~                      Disclosed Key                            ~ | |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
| ~                          TESLA MAC                            ~ | |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+<|-+
| ~                            MKI                                ~ | |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
| ~                            MAC                                ~ | |
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
|                                                                   | |
+- Encrypted Portion                 TESLA Authenticated Portion ---+ |
                                                                      |
                                             Authenticated Portion ---+

   Figure 2.  The format of the SRTP packet when TESLA is applied.

   As in SRTP, the "Encrypted Portion" of an SRTP packet consists of the
   encryption of the RTP payload (including RTP padding when present) of
   the equivalent RTP packet.

   The "Authenticated Portion" of an SRTP packet consists of the RTP
   header, the Encrypted Portion of the SRTP packet, and the TESLA
   authentication extension.  Note that the definition is extended from
   [RFC3711] by the inclusion of the TESLA authentication extension.

   The "TESLA Authenticated Portion" of an SRTP packet consists of the
   RTP header and the Encrypted Portion of the SRTP packet.  As shown in
   Figure 2, the SRTP MAC covers up to the MKI field but does not
   include the MKI.  It is necessary for packet integrity that the
   SRTP-TESLA MAC tag be covered by the SRTP integrity check.  SRTP does
   not cover the MKI field (because it does not need to be covered for
   SRTP packet integrity).  In order to make the two tags (SRTP-TESLA
   MAC and SRTP-MAC) contiguous, we would need to redefine the SRTP
   specification to include the MKI in SRTP-MAC coverage.  This change
   is impossible, so the MKI field separates the TESLA MAC from the SRTP
   MAC in the packet layout of Figure 2.  This change to the packet
   format presents no problem to an implementation that supports the new
   SRTP-TESLA authentication transform.

   The lengths of the Disclosed Key and TESLA MAC fields are Section 4.3
   parameters.  As in SRTP, fields that follow the packet payload are
   not necessarily aligned on 32-bit boundaries.

4.3.  Extension of the SRTP Cryptographic Context

   When TESLA is used, the definition of cryptographic context in
   Section 3.2 of SRTP SHALL include the following extensions.

   Transform-Dependent Parameters

     1.  an identifier for the PRF (TESLA PRF), implementing the one-way
         function F(x) in TESLA (to derive the keys in the chain), and
         the one-way function F’(x) in TESLA (to derive the keys for the
         TESLA MAC, from the keys in the chain), e.g., to indicate
         HMAC-SHA1.  See Section 6 for the default value.

     2.  a non-negative integer, n_p, determining the length of the F
         output; i.e., the length of the keys in the chain (that is also
         the key disclosed in an SRTP packet).  See Section 6 for the
         default value.

     3.  a non-negative integer, n_f, determining the length of the
         output of F’, i.e., of the key for the TESLA MAC.  See Section
         6 for the default value.

     4.  an identifier for the TESLA MAC that accepts the output of
         F’(x) as its key, e.g., to indicate HMAC-SHA1.  See Section 6
         for the default value.

     5.  a non-negative integer, n_m, determining the length of the
         output of the TESLA MAC.  See Section 6 for the default value.

     6.  the beginning of the session T_0.

     7.  the interval duration T_int (in msec).

     8.  the key disclosure delay d (in number of intervals).

     9.  the upper bound D_t (in sec) on the lag of the receiver clock
         relative to the sender clock (this quantity has to be
         calculated by the peers out-of-band).

     10. a non-negative integer, n_c, determining the length of the key
         chain, K_0...K_n-1 of [RFC4082] (see also Section 6 of this
         document), which is determined based upon the expected duration
         of the stream.

     11. the initial key of the chain to which the sender has committed
         himself.

   F(x) is used to compute a keychain of keys in SRTP TESLA, as defined
   in Section 6.  Also according to TESLA, F’(x) computes a TESLA MAC
   key with inputs as defined in Section 6.

   Section 6 of this document defines the default values for the
   transform-specific TESLA parameters.

4.4.  SRTP Processing

   The SRTP packet processing is described in Section 3.3 of the SRTP
   specification [RFC3711].  The use of TESLA slightly changes the
   processing, as the SRTP MAC is checked upon packet arrival for DoS
   prevention, but the current packet is not TESLA-authenticated.  Each
   packet is buffered until a subsequent packet discloses its TESLA key.
   The TESLA verification itself consists of some steps, such as tests
   of TESLA security invariants, that are described in Sections 3.5-3.7
   of [RFC4082].  The words "TESLA computation" and "TESLA verification"
   hereby imply all those steps, which are not all spelled out in the
   following.  In particular, notice that the TESLA verification implies
   checking the safety condition (Section 3.5 of [RFC4082]).

   As pointed out in [RFC4082], if the packet is deemed "unsafe", then
   the receiver considers the packet unauthenticated.  It should discard
   unsafe packets, but, at its own risk, it may choose to use them
   unverified.  Hence, if the safe condition does not hold, it is
   RECOMMENDED to discard the packet and log the event.

4.4.1.  Sender Processing

   The sender processing is as described in Section 3.3 of [RFC3711], up
   to step 5, inclusive.  After that, the following process is followed:

   6. When TESLA is applied, identify the key in the TESLA chain to be
      used in the current time interval, and the TESLA MAC key derived
      from it.  Execute the TESLA computation to obtain the TESLA
      authentication extension for the current packet, by appending the
      current interval identifier (as i field), the disclosed key of the
      chain for the previous disclosure interval (i.e., the key for
      interval i is disclosed in interval i+d), and the TESLA MAC under
      the current key from the chain.  This step uses the related TESLA
      parameters from the crypto context as for Step 4.

   7. If the MKI indicator in the SRTP crypto context is set to one,
      append the MKI to the packet.

   8. When TESLA is applied, and if the SRTP authentication (external
      tag) is required (for DoS), compute the authentication tag as
      described in step 7 of Section 3.3 of the SRTP specification, but
      with coverage as defined in this specification (see Section 4.6).

   9. If necessary, update the rollover counter (step 8 in Section 3.3
      of [RFC3711]).

4.4.2.  Receiver Processing

   The receiver processing is as described in Section 3.3 of [RFC3711],
   up to step 4, inclusive.

   To authenticate and replay-protect the current packet, the processing
   is as follows:

      First, check if the packet has been replayed (as per Section 3.3
      of [RFC3711]).  Note, however, that the SRTP replay list contains
      SRTP indices of recently received packets that have been
      authenticated by TESLA (i.e., replay list updates MUST NOT be
      based on SRTP MAC).  If the packet is judged to be replayed, then
      the packet MUST be discarded, and the event SHOULD be logged.

      Next, perform verification of the SRTP integrity protection tag
      (not the TESLA MAC), if present, using the rollover counter from
      the current packet, the authentication algorithm indicated in the
      cryptographic context, and the session authentication key.  If the
      verification is unsuccessful, the packet MUST be discarded from
      further processing, and the event SHOULD be logged.

      If the verification is successful, remove and store the MKI (if
      present) and authentication tag fields from the packet.  The
      packet is buffered, awaiting disclosure of the TESLA key in a
      subsequent packet.

      TESLA authentication is performed on a packet when the key is
      disclosed in a subsequent packet.  Recall that a key for interval
      i is disclosed during interval i+d, i.e., the same key is
      disclosed in packets sent over d intervals of length t_int.  If
      the interval identifier i from the packet (Section 4.1) has
      advanced more than d intervals from the highest value of i that
      has been received, then packets have been lost, and one or more
      keys MUST be computed as described in Section 3.2, second
      paragraph, of the TESLA specification [RFC4082].  The computation
      is performed recursively for all disclosed keys that have been
      lost, from the newly-received interval to the last-received
      interval.

      When a newly-disclosed key is received or computed, perform the
      TESLA verification of the packet using the rollover counter from
      the packet, the TESLA security parameters from the cryptographic
      context, and the disclosed key.  If the verification is
      unsuccessful, the packet MUST be discarded from further
      processing, and the event SHOULD be logged.  If the TESLA
      verification is successful, remove the TESLA authentication
      extension from the packet.

   To decrypt the current packet, the processing is as follows:

      Decrypt the Encrypted Portion of the packet, using the decryption
      algorithm indicated in the cryptographic context, the session
      encryption key, and salt (if used) found in Step 4 with the index
      from Step 2.

   (Note that the order of decryption and TESLA verification is not
   mandated.  It is RECOMMENDED that the TESLA verification be performed
   before decryption.  TESLA application designers might choose to
   implement optimistic processing techniques such as notification of
   TESLA verification results after decryption or even after plaintext
   processing.  Optimistic verification is beyond the scope of this
   document.)

   Update the rollover counter and highest sequence number, s_l, in the
   cryptographic context, using the packet index estimated in Step 2.
   If replay protection is provided, also update the Replay List (i.e.,
   the Replay List is updated after the TESLA authentication is
   successfully verified).

4.5.  SRTCP Packet Format

   Figure 3 illustrates the format of the SRTCP packet when TESLA is
   applied.  The TESLA authentication extension SHALL be inserted before
   the MKI and authentication tag.  Recall from [RFC3711] that in SRTCP
   the MKI is OPTIONAL, while the E-bit, the SRTCP index, and the
   authentication tag are MANDATORY.  This means that the SRTP
   (external) MAC is MANDATORY also when TESLA is used.

   As in SRTP, the "Encrypted Portion" of an SRTCP packet consists of
   the encryption of the RTCP payload of the equivalent compound RTCP
   packet, from the first RTCP packet, i.e., from the ninth (9) byte to
   the end of the compound packet.

   The "Authenticated Portion" of an SRTCP packet consists of the entire
   equivalent (eventually compound) RTCP packet, the E flag, the SRTCP
   index (after any encryption has been applied to the payload), and the
------分隔线----------------------------
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容