Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: talk/session/media/srtpfilter.h

Issue 1337673002: Change WebRTC SslCipher to be exposed as number only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/session/media/mediasession_unittest.cc ('k') | talk/session/media/srtpfilter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2009 Google Inc. 3 * Copyright 2009 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 21 matching lines...) Expand all
32 #include <map> 32 #include <map>
33 #include <string> 33 #include <string>
34 #include <vector> 34 #include <vector>
35 35
36 #include "talk/media/base/cryptoparams.h" 36 #include "talk/media/base/cryptoparams.h"
37 #include "webrtc/p2p/base/sessiondescription.h" 37 #include "webrtc/p2p/base/sessiondescription.h"
38 #include "webrtc/base/basictypes.h" 38 #include "webrtc/base/basictypes.h"
39 #include "webrtc/base/criticalsection.h" 39 #include "webrtc/base/criticalsection.h"
40 #include "webrtc/base/scoped_ptr.h" 40 #include "webrtc/base/scoped_ptr.h"
41 #include "webrtc/base/sigslotrepeater.h" 41 #include "webrtc/base/sigslotrepeater.h"
42 #include "webrtc/base/sslstreamadapter.h"
42 43
43 // Forward declaration to avoid pulling in libsrtp headers here 44 // Forward declaration to avoid pulling in libsrtp headers here
44 struct srtp_event_data_t; 45 struct srtp_event_data_t;
45 struct srtp_ctx_t; 46 struct srtp_ctx_t;
46 struct srtp_policy_t; 47 struct srtp_policy_t;
47 48
48 namespace cricket { 49 namespace cricket {
49 50
50 // Cipher suite to use for SRTP. Typically a 80-bit HMAC will be used, except
51 // in applications (voice) where the additional bandwidth may be significant.
52 // A 80-bit HMAC is always used for SRTCP.
53 // 128-bit AES with 80-bit SHA-1 HMAC.
54 extern const char CS_AES_CM_128_HMAC_SHA1_80[];
55 // 128-bit AES with 32-bit SHA-1 HMAC.
56 extern const char CS_AES_CM_128_HMAC_SHA1_32[];
57 // Key is 128 bits and salt is 112 bits == 30 bytes. B64 bloat => 40 bytes. 51 // Key is 128 bits and salt is 112 bits == 30 bytes. B64 bloat => 40 bytes.
58 extern const int SRTP_MASTER_KEY_BASE64_LEN; 52 extern const int SRTP_MASTER_KEY_BASE64_LEN;
59 53
60 // Needed for DTLS-SRTP 54 // Needed for DTLS-SRTP
61 extern const int SRTP_MASTER_KEY_KEY_LEN; 55 extern const int SRTP_MASTER_KEY_KEY_LEN;
62 extern const int SRTP_MASTER_KEY_SALT_LEN; 56 extern const int SRTP_MASTER_KEY_SALT_LEN;
63 57
64 class SrtpSession; 58 class SrtpSession;
65 class SrtpStat; 59 class SrtpStat;
66 60
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 std::map<FailureKey, FailureStat> failures_; 313 std::map<FailureKey, FailureStat> failures_;
320 // Threshold in ms to silent the signaling errors. 314 // Threshold in ms to silent the signaling errors.
321 uint32 signal_silent_time_; 315 uint32 signal_silent_time_;
322 316
323 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); 317 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat);
324 }; 318 };
325 319
326 } // namespace cricket 320 } // namespace cricket
327 321
328 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ 322 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_
OLDNEW
« no previous file with comments | « talk/session/media/mediasession_unittest.cc ('k') | talk/session/media/srtpfilter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698