OLD | NEW |
1 /* | 1 /* |
2 * srtp.h | 2 * srtp.h |
3 * | 3 * |
4 * interface to libsrtp | 4 * interface to libsrtp |
5 * | 5 * |
6 * David A. McGrew | 6 * David A. McGrew |
7 * Cisco Systems, Inc. | 7 * Cisco Systems, Inc. |
8 */ | 8 */ |
9 /* | 9 /* |
10 * | 10 * |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 #ifdef __cplusplus | 49 #ifdef __cplusplus |
50 extern "C" { | 50 extern "C" { |
51 #endif | 51 #endif |
52 | 52 |
53 #include <stdint.h> | 53 #include <stdint.h> |
54 #include "crypto.h" | 54 #include "crypto.h" |
55 #include "crypto_types.h" | 55 #include "crypto_types.h" |
56 #include "err.h" | 56 #include "err.h" |
57 | 57 |
| 58 /* |
| 59 * Compatibility shim for v1->v2 transition. |
| 60 */ |
| 61 |
| 62 #define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_32 \ |
| 63 crypto_policy_set_aes_cm_128_hmac_sha1_32 |
| 64 #define srtp_crypto_policy_set_aes_cm_128_hmac_sha1_80 \ |
| 65 crypto_policy_set_aes_cm_128_hmac_sha1_80 |
| 66 #define srtp_crypto_policy_set_aes_gcm_128_16_auth \ |
| 67 crypto_policy_set_aes_gcm_128_16_auth |
| 68 #define srtp_crypto_policy_set_aes_gcm_256_16_auth \ |
| 69 crypto_policy_set_aes_gcm_256_16_auth |
| 70 |
| 71 #define srtp_ssrc_type_t ssrc_type_t |
| 72 |
58 /** | 73 /** |
59 * @defgroup SRTP Secure RTP | 74 * @defgroup SRTP Secure RTP |
60 * | 75 * |
61 * @brief libSRTP provides functions for protecting RTP and RTCP. See | 76 * @brief libSRTP provides functions for protecting RTP and RTCP. See |
62 * Section @ref Overview for an introduction to the use of the library. | 77 * Section @ref Overview for an introduction to the use of the library. |
63 * | 78 * |
64 * @{ | 79 * @{ |
65 */ | 80 */ |
66 | 81 |
67 /* | 82 /* |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 #define SRTCP_E_BIT 0x80000000 | 1274 #define SRTCP_E_BIT 0x80000000 |
1260 /* for byte-access */ | 1275 /* for byte-access */ |
1261 #define SRTCP_E_BYTE_BIT 0x80 | 1276 #define SRTCP_E_BYTE_BIT 0x80 |
1262 #define SRTCP_INDEX_MASK 0x7fffffff | 1277 #define SRTCP_INDEX_MASK 0x7fffffff |
1263 | 1278 |
1264 #ifdef __cplusplus | 1279 #ifdef __cplusplus |
1265 } | 1280 } |
1266 #endif | 1281 #endif |
1267 | 1282 |
1268 #endif /* SRTP_H */ | 1283 #endif /* SRTP_H */ |
OLD | NEW |