OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "webrtc/media/base/cryptoparams.h" | 25 #include "webrtc/media/base/cryptoparams.h" |
26 #include "webrtc/p2p/base/sessiondescription.h" | 26 #include "webrtc/p2p/base/sessiondescription.h" |
27 | 27 |
28 // Forward declaration to avoid pulling in libsrtp headers here | 28 // Forward declaration to avoid pulling in libsrtp headers here |
29 struct srtp_event_data_t; | 29 struct srtp_event_data_t; |
30 struct srtp_ctx_t; | 30 struct srtp_ctx_t; |
31 struct srtp_policy_t; | 31 struct srtp_policy_t; |
32 | 32 |
33 namespace cricket { | 33 namespace cricket { |
34 | 34 |
35 // Key is 128 bits and salt is 112 bits == 30 bytes. B64 bloat => 40 bytes. | |
36 extern const int SRTP_MASTER_KEY_BASE64_LEN; | |
37 | |
38 // Needed for DTLS-SRTP | |
39 extern const int SRTP_MASTER_KEY_KEY_LEN; | |
40 extern const int SRTP_MASTER_KEY_SALT_LEN; | |
41 | |
42 class SrtpSession; | 35 class SrtpSession; |
43 class SrtpStat; | 36 class SrtpStat; |
44 | 37 |
45 void EnableSrtpDebugging(); | 38 void EnableSrtpDebugging(); |
46 void ShutdownSrtp(); | 39 void ShutdownSrtp(); |
47 | 40 |
48 // Class to transform SRTP to/from RTP. | 41 // Class to transform SRTP to/from RTP. |
49 // Initialize by calling SetSend with the local security params, then call | 42 // Initialize by calling SetSend with the local security params, then call |
50 // SetRecv once the remote security params are received. At that point | 43 // SetRecv once the remote security params are received. At that point |
51 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. | 44 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 std::map<FailureKey, FailureStat> failures_; | 298 std::map<FailureKey, FailureStat> failures_; |
306 // Threshold in ms to silent the signaling errors. | 299 // Threshold in ms to silent the signaling errors. |
307 uint32_t signal_silent_time_; | 300 uint32_t signal_silent_time_; |
308 | 301 |
309 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); | 302 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); |
310 }; | 303 }; |
311 | 304 |
312 } // namespace cricket | 305 } // namespace cricket |
313 | 306 |
314 #endif // WEBRTC_PC_SRTPFILTER_H_ | 307 #endif // WEBRTC_PC_SRTPFILTER_H_ |
OLD | NEW |