| 4 |
| <a name="introduction-to-libsrtp"></a> |
| 5 | # Introduction to libSRTP |
| 6 |
| 7 | This package provides an implementation of the Secure Real-time |
| 8 | Transport Protocol (SRTP), the Universal Security Transform (UST), and |
| 9 | a supporting cryptographic kernel. The SRTP API is documented in include/srtp.h, |
| 10 | and the library is in libsrtp2.a (after compilation). |
| 11 |
| 12 | This document describes libSRTP, the Open Source Secure RTP library |
| 13 | from Cisco Systems, Inc. RTP is the Real-time Transport Protocol, an |
| 14 | IETF standard for the transport of real-time data such as telephony, |
| 15 | audio, and video, defined by [RFC 3550](https://www.ietf.org/rfc/rfc3550.txt). |
| 16 | Secure RTP (SRTP) is an RTP profile for providing confidentiality to RTP data |
| 17 | and authentication to the RTP header and payload. SRTP is an IETF Standard, |
| 18 | defined in [RFC 3711](https://www.ietf.org/rfc/rfc3711.txt), and was developed |
| 19 | in the IETF Audio/Video Transport (AVT) Working Group. This library supports |
| 20 | all of the mandatory features of SRTP, but not all of the optional features. See |
| 21 | the [Supported Features](#supported-features) section for more detailed information. |
| 22 |
| 23 | This document is also used to generate the documentation files in the /doc/ |
| 24 | folder where a more detailed reference to the libSRTP API and related functions |
| 25 | can be created (requires installing doxygen.). The reference material is created |
| 26 | automatically from comments embedded in some of the C header files. The |
| 27 | documentation is organized into modules in order to improve its clarity. These |
| 28 | modules do not directly correspond to files. An underlying cryptographic kernel |
| 29 | provides much of the basic functionality of libSRTP but is mostly undocumented |
| 30 | because it does its work behind the scenes. |
| 31 |
| 32 | -------------------------------------------------------------------------------- |
| 33 |
| 34 | <a name="contact"></a> |
| 35 | # Contact Us |
| 36 |
| 37 | - [libsrtp@lists.packetizer.com](mailto:libsrtp@lists.packetizer.com) general mailing list for news / announcements / discussions. This is an open list, see |
| 38 | [https://lists.packetizer.com/mailman/listinfo/libsrtp](https://lists.packetizer.com/mailman/listinfo/libsrtp) for singing up. |
| 39 |
| 40 | - [libsrtp-security@lists.packetizer.com](mailto:libsrtp-security@lists.packetizer.com) for disclosing security issues to the libsrtp maintenance team. This is a closed list but anyone can send to it. |
| 41 |
| 42 |
| 43 | -------------------------------------------------------------------------------- |
| 44 |
| 45 | <a name="contents"></a> |
| 46 | ## Contents |
| 47 |
| 48 | - [Introduction to libSRTP](#introduction-to-libsrtp) |
| 49 | - [Contact Us](#contact) |
| 50 | - [Contents](#contents) |
| 51 | - [License and Disclaimer](#license-and-disclaimer) |
| 52 | - [libSRTP Overview](#libsrtp-overview) |
| 53 | - [Secure RTP Background](#secure-rtp-background) |
| 54 | - [Supported Features](#supported-features) |
| 55 | - [Implementation Notes](#implementation-notes) |
| 56 | - [Installing and Building libSRTP](#installing-and-building-libsrtp) |
| 57 | - [Changing Build Configuration](#changing-build-configuration) |
| 58 | - [Applications](#applications) |
| 59 | - [Example Code](#example-code) |
| 60 | - [Credits](#credits) |
| 61 | - [References](#references) |
| 62 |
| 63 | -------------------------------------------------------------------------------- |
| 64 |
| 65 | <a name="license-and-disclaimer"></a> |
| 66 | # License and Disclaimer |
| 67 |
| 68 | libSRTP is distributed under the following license, which is included |
| 69 | in the source code distribution. It is reproduced in the manual in |
| 70 | case you got the library from another source. |
| 71 |
| 72 | > Copyright (c) 2001-2017 Cisco Systems, Inc. All rights reserved. |
| 73 | > |
| 74 | > Redistribution and use in source and binary forms, with or without |
| 75 | > modification, are permitted provided that the following conditions |
| 76 | > are met: |
| 77 | > |
| 78 | > - Redistributions of source code must retain the above copyright |
| 79 | > notice, this list of conditions and the following disclaimer. |
| 80 | > - Redistributions in binary form must reproduce the above copyright |
| 81 | > notice, this list of conditions and the following disclaimer in |
| 82 | > the documentation and/or other materials provided with the distribution. |
| 83 | > - Neither the name of the Cisco Systems, Inc. nor the names of its |
| 84 | > contributors may be used to endorse or promote products derived |
| 85 | > from this software without specific prior written permission. |
| 86 | > |
| 87 | > THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 88 | > "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 89 | > LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 90 | > FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 91 | > COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 92 | > INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 93 | > (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 94 | > SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 95 | > HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 96 | > STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 97 | > ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 98 | > OF THE POSSIBILITY OF SUCH DAMAGE. |
| 99 |
| 100 | -------------------------------------------------------------------------------- |
| 101 |
| 102 | <a name="libsrtp-overview"></a> |
| 103 | # libSRTP Overview |
| 104 |
| 105 | libSRTP provides functions for protecting RTP and RTCP. RTP packets |
| 106 | can be encrypted and authenticated (using the `srtp_protect()` |
| 107 | function), turning them into SRTP packets. Similarly, SRTP packets |
| 108 | can be decrypted and have their authentication verified (using the |
| 109 | `srtp_unprotect()` function), turning them into RTP packets. Similar |
| 110 | functions apply security to RTCP packets. |
| 111 |
| 112 | The typedef `srtp_stream_t` points to a structure holding all of the |
| 113 | state associated with an SRTP stream, including the keys and |
| 114 | parameters for cipher and message authentication functions and the |
| 115 | anti-replay data. A particular `srtp_stream_t` holds the information |
| 116 | needed to protect a particular RTP and RTCP stream. This datatype |
| 117 | is intentionally opaque in order to better seperate the libSRTP |
| 118 | API from its implementation. |
| 119 |
| 120 | Within an SRTP session, there can be multiple streams, each |
| 121 | originating from a particular sender. Each source uses a distinct |
| 122 | stream context to protect the RTP and RTCP stream that it is |
| 123 | originating. The typedef `srtp_t` points to a structure holding all of |
| 124 | the state associated with an SRTP session. There can be multiple |
| 125 | stream contexts associated with a single `srtp_t`. A stream context |
| 126 | cannot exist indepent from an `srtp_t`, though of course an `srtp_t` can |
| 127 | be created that contains only a single stream context. A device |
| 128 | participating in an SRTP session must have a stream context for each |
| 129 | source in that session, so that it can process the data that it |
| 130 | receives from each sender. |
| 131 |
| 132 | In libSRTP, a session is created using the function `srtp_create()`. |
| 133 | The policy to be implemented in the session is passed into this |
| 134 | function as an `srtp_policy_t` structure. A single one of these |
| 135 | structures describes the policy of a single stream. These structures |
| 136 | can also be linked together to form an entire session policy. A linked |
| 137 | list of `srtp_policy_t` structures is equivalent to a session policy. |
| 138 | In such a policy, we refer to a single `srtp_policy_t` as an *element*. |
| 139 |
| 140 | An `srtp_policy_t` strucutre contains two `crypto_policy_t` structures |
| 141 | that describe the cryptograhic policies for RTP and RTCP, as well as |
| 142 | the SRTP master key and the SSRC value. The SSRC describes what to |
| 143 | protect (e.g. which stream), and the `crypto_policy_t` structures |
| 144 | describe how to protect it. The key is contained in a policy element |
| 145 | because it simplifies the interface to the library. In many cases, it |
| 146 | is desirable to use the same cryptographic policies across all of the |
| 147 | streams in a session, but to use a distinct key for each stream. A |
| 148 | `crypto_policy_t` structure can be initialized by using either the |
| 149 | `crypto_policy_set_rtp_default()` or `crypto_policy_set_rtcp_default()` |
| 150 | functions, which set a crypto policy structure to the default policies |
| 151 | for RTP and RTCP protection, respectively. |
| 152 |
| 153 | -------------------------------------------------------------------------------- |
| 154 |
| 155 | <a name="secure-rtp-background"></a> |
| 156 | ## Secure RTP Background |
| 157 |
| 158 | In this section we review SRTP and introduce some terms that are used |
| 159 | in libSRTP. An RTP session is defined by a pair of destination |
| 160 | transport addresses, that is, a network address plus a pair of UDP |
| 161 | ports for RTP and RTCP. RTCP, the RTP control protocol, is used to |
| 162 | coordinate between the participants in an RTP session, e.g. to provide |
| 163 | feedback from receivers to senders. An *SRTP session* is |
| 164 | similarly defined; it is just an RTP session for which the SRTP |
| 165 | profile is being used. An SRTP session consists of the traffic sent |
| 166 | to the SRTP or SRTCP destination transport addresses. Each |
| 167 | participant in a session is identified by a synchronization source |
| 168 | (SSRC) identifier. Some participants may not send any SRTP traffic; |
| 169 | they are called receivers, even though they send out SRTCP traffic, |
| 170 | such as receiver reports. |
| 171 |
| 172 | RTP allows multiple sources to send RTP and RTCP traffic during the |
| 173 | same session. The synchronization source identifier (SSRC) is used to |
| 174 | distinguish these sources. In libSRTP, we call the SRTP and SRTCP |
| 175 | traffic from a particular source a *stream*. Each stream has its own |
| 176 | SSRC, sequence number, rollover counter, and other data. A particular |
| 177 | choice of options, cryptographic mechanisms, and keys is called a |
| 178 | *policy*. Each stream within a session can have a distinct policy |
| 179 | applied to it. A session policy is a collection of stream policies. |
| 180 |
| 181 | A single policy can be used for all of the streams in a given session, |
| 182 | though the case in which a single *key* is shared across multiple |
| 183 | streams requires care. When key sharing is used, the SSRC values that |
| 184 | identify the streams **must** be distinct. This requirement can be |
| 185 | enforced by using the convention that each SRTP and SRTCP key is used |
| 186 | for encryption by only a single sender. In other words, the key is |
| 187 | shared only across streams that originate from a particular device (of |
| 188 | course, other SRTP participants will need to use the key for |
| 189 | decryption). libSRTP supports this enforcement by detecting the case |
| 190 | in which a key is used for both inbound and outbound data. |
| 191 |
| 192 | -------------------------------------------------------------------------------- |
| 193 |
| 194 | <a name="supported-features"></a> |
| 195 | ## Supported Features |
| 196 |
| 197 | This library supports all of the mandatory-to-implement features of |
| 198 | SRTP (as defined in [RFC 3711](https://www.ietf.org/rfc/rfc3711.txt)). Some of these |
| 199 | features can be selected (or de-selected) at run time by setting an |
| 200 | appropriate policy; this is done using the structure `srtp_policy_t`. |
| 201 | Some other behaviors of the protocol can be adapted by defining an |
| 202 | approriate event handler for the exceptional events; see the SRTPevents |
| 203 | section in the generated documentation. |
| 204 |
| 205 | Some options that are described in the SRTP specification are not |
| 206 | supported. This includes |
| 207 |
| 208 | - key derivation rates other than zero, |
| 209 | - the cipher F8, |
| 210 | - the use of the packet index to select between master keys. |
| 211 |
| 212 | The user should be aware that it is possible to misuse this libary, |
| 213 | and that the result may be that the security level it provides is |
| 214 | inadequate. If you are implementing a feature using this library, you |
| 215 | will want to read the Security Considerations section of [RFC 3711](https://www.ietf.org/rfc/rfc3711.txt). |
| 216 | In addition, it is important that you read and understand the |
| 217 | terms outlined in the [License and Disclaimer](#license-and-disclaimer) section. |
| 218 |
| 219 | -------------------------------------------------------------------------------- |
| 220 |
| 221 | <a name="implementation-notes"></a> |
| 222 | ## Implementation Notes |
| 223 |
| 224 | * The `srtp_protect()` function assumes that the buffer holding the |
| 225 | rtp packet has enough storage allocated that the authentication |
| 226 | tag can be written to the end of that packet. If this assumption |
| 227 | is not valid, memory corruption will ensue. |
| 228 |
| 229 | * Automated tests for the crypto functions are provided through |
| 230 | the `cipher_type_self_test()` and `auth_type_self_test()` functions. |
| 231 | These functions should be used to test each port of this code |
| 232 | to a new platform. |
| 233 |
| 234 | * Replay protection is contained in the crypto engine, and |
| 235 | tests for it are provided. |
| 236 |
| 237 | * This implementation provides calls to initialize, protect, and |
| 238 | unprotect RTP packets, and makes as few as possible assumptions |
| 239 | about how these functions will be called. For example, the |
| 240 | caller is not expected to provide packets in order (though if |
| 241 | they're called more than 65k out of sequence, synchronization |
| 242 | will be lost). |
| 243 |
| 244 | * The sequence number in the rtp packet is used as the low 16 bits |
| 245 | of the sender's local packet index. Note that RTP will start its |
| 246 | sequence number in a random place, and the SRTP layer just jumps |
| 247 | forward to that number at its first invocation. An earlier |
| 248 | version of this library used initial sequence numbers that are |
| 249 | less than 32,768; this trick is no longer required as the |
| 250 | `rdbx_estimate_index(...)` function has been made smarter. |
| 251 |
| 252 | * The replay window for (S)RTCP is hardcoded to 128 bits in length. |
| 253 |
| 254 | -------------------------------------------------------------------------------- |
| 255 |
| 256 | <a name="installing-and-building-libsrtp"></a> |
| 257 | # Installing and Building libSRTP |
| 258 |
| 259 | To install libSRTP, download the latest release of the distribution |
| 260 | from [https://github.com/cisco/libsrtp/releases](https://github.com/cisco/libsrtp/releases). |
| 261 | You probably want to get the most recent release. Unpack the distribution and |
| 262 | extract the source files; the directory into which the source files |
| 263 | will go is named `libsrtp-A-B-C` where `A` is the version number, `B` is the |
| 264 | major release number and `C` is the minor release number. |
| 265 |
| 266 | libSRTP uses the GNU `autoconf` and `make` utilities (BSD make will not work; if |
| 267 | both versions of make are on your platform, you can invoke GNU make as |
| 268 | `gmake`.). In the `libsrtp` directory, run the configure script and then |
| 269 | make: |
| 270 |
| 271 | ~~~.txt |
| 272 | ./configure [ options ] |
| 273 | make |
| 274 | ~~~ |
| 275 |
| 276 | The configure script accepts the following options: |
| 277 |
| 278 | Option | Description |
| 279 | -------------------------------|-------------------- |
| 280 | \-\-help \-h | Display help |
| 281 | \-\-enable-debug-logging | Enable debug logging in all modules |
| 282 | \-\-enable-log-stdout | Enable logging to stdout |
| 283 | \-\-enable-openssl | Enable OpenSSL crypto engine |
| 284 | \-\-enable-openssl-kdf | Enable OpenSSL KDF algorithm |
| 285 | \-\-with-log-file | Use file for logging |
| 286 | \-\-with-openssl-dir | Location of OpenSSL installation |
| 287 |
| 288 | By default there is no log output, logging can be enabled to be output to stdout |
| 289 | or a given file using the configure options. |
| 290 |
| 291 | This package has been tested on the following platforms: Mac OS X |
| 292 | (powerpc-apple-darwin1.4), Cygwin (i686-pc-cygwin), Solaris |
| 293 | (sparc-sun-solaris2.6), RedHat Linux 7.1 and 9 (i686-pc-linux), and |
| 294 | OpenBSD (sparc-unknown-openbsd2.7). |
| 295 |
| 296 | -------------------------------------------------------------------------------- |
| 297 |
| 298 | <a name="changing-build-configuration"></a> |
| 299 | ## Changing Build Configuration |
| 300 |
| 301 | To build the `./configure` script mentioned above, libSRTP relies on the |
| 302 | [automake](https://www.gnu.org/software/automake/) toolchain. Since |
| 303 | `./configure` is built from `configure.in` by automake, if you make changes in |
| 304 | how `./configure` works (e.g., to add a new library dependency), you will need |
| 305 | to rebuild `./configure` and commit the updated version. In addition to |
| 306 | automake itself, you will need to have the `pkgconfig` tools installed as well. |
| 307 |
| 308 | For example, on macOS: |
| 309 |
| 310 | ``` |
| 311 | brew install automake pkgconfig |
| 312 | # Edit configure.in |
| 313 | autoremake -ivf |
| 314 | ``` |
| 315 |
| 316 | -------------------------------------------------------------------------------- |
| 317 |
| 318 | <a name="applications"></a> |
| 319 | # Applications |
| 320 |
| 321 | Several test drivers and a simple and portable srtp application are |
| 322 | included in the `test/` subdirectory. |
| 323 |
| 324 | Test driver | Function tested |
| 325 | --------- | ------- |
| 326 | kernel_driver | crypto kernel (ciphers, auth funcs, rng) |
| 327 | srtp_driver | srtp in-memory tests (does not use the network) |
| 328 | rdbx_driver | rdbx (extended replay database) |
| 329 | roc_driver | extended sequence number functions |
| 330 | replay_driver | replay database |
| 331 | cipher_driver | ciphers |
| 332 | auth_driver | hash functions |
| 333 |
| 334 | The app `rtpw` is a simple rtp application which reads words from |
| 335 | `/usr/dict/words` and then sends them out one at a time using [s]rtp. |
| 336 | Manual srtp keying uses the -k option; automated key management |
| 337 | using gdoi will be added later. |
| 338 |
| 339 | usage: |
| 340 | ~~~.txt |
| 341 | rtpw [[-d <debug>]* [-k|b <key> [-a][-e <key size>][-g]] [-s | -r] dest_ip dest_port] | [-l] |
| 342 | ~~~ |
| 343 |
| 344 | Either the -s (sender) or -r (receiver) option must be chosen. The |
| 345 | values `dest_ip`, `dest_port` are the IP address and UDP port to which |
| 346 | the dictionary will be sent, respectively. |
| 347 |
| 348 | The options are: |
| 349 |
| 350 | Option | Description |
| 351 | --------- | ------- |
| 352 | -s | (S)RTP sender - causes app to send words |
| 353 | -r | (S)RTP receive - causes app to receive words |
| 354 | -k <key> | use SRTP master key <key>, where the key is a hexadecimal (without the leading "0x") |
| 355 | -b <key> | same as -k but with base64 encoded key |
| 356 | -e <keysize> | encrypt/decrypt (for data confidentiality) (requires use of -k option as well) (use 128, 192, or 256 for keysize) |
| 357 | -g | use AES-GCM mode (must be used with -e) |
| 358 | -a | message authentication (requires use of -k option as well) |
| 359 | -l | list the available debug modules |
| 360 | -d <debug> | turn on debugging for module <debug> |
| 361 |
| 362 | In order to get random 30-byte values for use as key/salt pairs , you |
| 363 | can use the following bash function to format the output of |
| 364 | `/dev/random` (where that device is available). |
| 365 |
| 366 | ~~~.txt |
| 367 | function randhex() { |
| 368 | cat /dev/random | od --read-bytes=32 --width=32 -x | awk '{ print $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 }' |
| 369 | } |
| 370 | ~~~ |
| 371 |
| 372 | An example of an SRTP session using two rtpw programs follows: |
| 373 |
| 374 | ~~~.txt |
| 375 | set k=c1eec3717da76195bb878578790af71c4ee9f859e197a414a78d5abc7451 |
| 376 |
| 377 | [sh1]$ test/rtpw -s -k $k -e 128 -a 0.0.0.0 9999 |
| 378 | Security services: confidentiality message authentication |
| 379 | set master key/salt to C1EEC3717DA76195BB878578790AF71C/4EE9F859E197A414A78D5ABC7451 |
| 380 | setting SSRC to 2078917053 |
| 381 | sending word: A |
| 382 | sending word: a |
| 383 | sending word: aa |
| 384 | sending word: aal |
| 385 | ... |
| 386 |
| 387 | [sh2]$ test/rtpw -r -k $k -e 128 -a 0.0.0.0 9999 |
| 388 | security services: confidentiality message authentication |
| 389 | set master key/salt to C1EEC3717DA76195BB878578790AF71C/4EE9F859E197A414A78D5ABC7451 |
| 390 | 19 octets received from SSRC 2078917053 word: A |
| 391 | 19 octets received from SSRC 2078917053 word: a |
| 392 | 20 octets received from SSRC 2078917053 word: aa |
| 393 | 21 octets received from SSRC 2078917053 word: aal |
| 394 | ... |
| 395 | ~~~ |
| 396 |
| 397 | -------------------------------------------------------------------------------- |
| 398 |
| 399 | <a name="example-code"></a> |
| 400 | ## Example Code |
| 401 |
| 402 | This section provides a simple example of how to use libSRTP. The |
| 403 | example code lacks error checking, but is functional. Here we assume |
| 404 | that the value ssrc is already set to describe the SSRC of the stream |
| 405 | that we are sending, and that the functions `get_rtp_packet()` and |
| 406 | `send_srtp_packet()` are available to us. The former puts an RTP packet |
| 407 | into the buffer and returns the number of octets written to that |
| 408 | buffer. The latter sends the RTP packet in the buffer, given the |
| 409 | length as its second argument. |
| 410 |
| 411 | ~~~.c |
| 412 | srtp_t session; |
| 413 | srtp_policy_t policy; |
| 414 |
| 415 | // Set key to predetermined value |
| 416 | uint8_t key[30] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, |
| 417 | 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, |
| 418 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, |
| 419 | 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D}; |
| 420 |
| 421 | // initialize libSRTP |
| 422 | srtp_init(); |
| 423 |
| 424 | // default policy values |
| 425 | memset(&policy, 0x0, sizeof(srtp_policy_t)); |
| 426 |
| 427 | // set policy to describe a policy for an SRTP stream |
| 428 | crypto_policy_set_rtp_default(&policy.rtp); |
| 429 | crypto_policy_set_rtcp_default(&policy.rtcp); |
| 430 | policy.ssrc = ssrc; |
| 431 | policy.key = key; |
| 432 | policy.next = NULL; |
| 433 |
| 434 | // allocate and initialize the SRTP session |
| 435 | srtp_create(&session, &policy); |
| 436 |
| 437 | // main loop: get rtp packets, send srtp packets |
| 438 | while (1) { |
| 439 | char rtp_buffer[2048]; |
| 440 | unsigned len; |
| 441 |
| 442 | len = get_rtp_packet(rtp_buffer); |
| 443 | srtp_protect(session, rtp_buffer, &len); |
| 444 | send_srtp_packet(rtp_buffer, len); |
| 445 | } |
| 446 | ~~~ |
| 447 |
| 448 | -------------------------------------------------------------------------------- |
| 449 |
| 450 | <a name="credits"></a> |
| 451 | # Credits |
| 452 |
| 453 | The original implementation and documentation of libSRTP was written |
| 454 | by David McGrew of Cisco Systems, Inc. in order to promote the use, |
| 455 | understanding, and interoperability of Secure RTP. Michael Jerris |
| 456 | contributed support for building under MSVC. Andris Pavenis |
| 457 | contributed many important fixes. Brian West contributed changes to |
| 458 | enable dynamic linking. Yves Shumann reported documentation bugs. |
| 459 | Randell Jesup contributed a working SRTCP implementation and other |
| 460 | fixes. Steve Underwood contributed x86_64 portability changes. We also give |
| 461 | thanks to Fredrik Thulin, Brian Weis, Mark Baugher, Jeff Chan, Bill |
| 462 | Simon, Douglas Smith, Bill May, Richard Preistley, Joe Tardo and |
| 463 | others for contributions, comments, and corrections. |
| 464 |
| 465 | This reference material, when applicable, in this documenation was generated |
| 466 | using the doxygen utility for automatic documentation of source code. |
| 467 |
| 468 | Copyright 2001-2005 by David A. McGrew, Cisco Systems, Inc. |
| 469 |
| 470 | -------------------------------------------------------------------------------- |
| 471 |
| 472 | <a name="references"></a> |
| 473 | # References |
| 474 |
| 475 | SRTP and ICM References |
| 476 | September, 2005 |
| 477 |
| 478 | Secure RTP is defined in [RFC 3711](https://www.ietf.org/rfc/rfc3711.txt). |
| 479 | The counter mode definition is in Section 4.1.1. |
| 480 |
| 481 | SHA-1 is defined in [FIPS PUB 180-4](http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf). |
| 482 |
| 483 | HMAC is defined in [RFC 2104](https://www.ietf.org/rfc/rfc2104.txt) |
| 484 | and HMAC-SHA1 test vectors are available |
| 485 | in [RFC 2202](https://www.ietf.org/rfc/rfc2202.txt). |
| 486 |
| 487 | AES-GCM usage in SRTP is defined in [RFC 7714](https://www.ietf.org/html/rfc7714) |
| 488 |