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

Side by Side Diff: webrtc/pc/externalhmac.h

Issue 2609783002: Reland of place basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: add basictypes.h to systeminfo.cc Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 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 10 matching lines...) Expand all
21 // How will libsrtp select this module? 21 // How will libsrtp select this module?
22 // Libsrtp defines authentication function types identified by an unsigned 22 // Libsrtp defines authentication function types identified by an unsigned
23 // integer, e.g. SRTP_HMAC_SHA1 is 3. Using authentication ids, the 23 // integer, e.g. SRTP_HMAC_SHA1 is 3. Using authentication ids, the
24 // application can plug any desired authentication modules into libsrtp. 24 // application can plug any desired authentication modules into libsrtp.
25 // libsrtp also provides a mechanism to select different auth functions for 25 // libsrtp also provides a mechanism to select different auth functions for
26 // individual streams. This can be done by setting the right value in 26 // individual streams. This can be done by setting the right value in
27 // the auth_type of srtp_policy_t. The application must first register auth 27 // the auth_type of srtp_policy_t. The application must first register auth
28 // functions and the corresponding authentication id using 28 // functions and the corresponding authentication id using
29 // crypto_kernel_replace_auth_type function. 29 // crypto_kernel_replace_auth_type function.
30 30
31 #include "webrtc/base/basictypes.h" 31 #include <stdint.h>
32
32 #ifdef HAVE_SRTP 33 #ifdef HAVE_SRTP
33 #include "third_party/libsrtp/crypto/include/auth.h" 34 #include "third_party/libsrtp/crypto/include/auth.h"
34 #endif // HAVE_SRTP 35 #endif // HAVE_SRTP
35 36
36 #if defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) 37 #if defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH)
37 38
38 #define EXTERNAL_HMAC_SHA1 SRTP_HMAC_SHA1 + 1 39 #define EXTERNAL_HMAC_SHA1 SRTP_HMAC_SHA1 + 1
39 #define HMAC_KEY_LENGTH 20 40 #define HMAC_KEY_LENGTH 20
40 41
41 // The HMAC context structure used to store authentication keys. 42 // The HMAC context structure used to store authentication keys.
(...skipping 23 matching lines...) Expand all
65 srtp_err_status_t external_hmac_compute(ExternalHmacContext* state, 66 srtp_err_status_t external_hmac_compute(ExternalHmacContext* state,
66 const void* message, 67 const void* message,
67 int msg_octets, 68 int msg_octets,
68 int tag_len, 69 int tag_len,
69 uint8_t* result); 70 uint8_t* result);
70 71
71 srtp_err_status_t external_crypto_init(); 72 srtp_err_status_t external_crypto_init();
72 73
73 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) 74 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH)
74 #endif // WEBRTC_PC_EXTERNALHMAC_H_ 75 #endif // WEBRTC_PC_EXTERNALHMAC_H_
OLDNEW
« no previous file with comments | « webrtc/pc/currentspeakermonitor.h ('k') | webrtc/sdk/android/src/jni/androidnetworkmonitor_jni.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698