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

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

Issue 2603203003: Revert of Replace basictypes.h with stdint.h for int_t types. (Closed)
Patch Set: 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 <stdint.h> 31 #include "webrtc/base/basictypes.h"
32
33 #ifdef HAVE_SRTP 32 #ifdef HAVE_SRTP
34 #include "third_party/libsrtp/crypto/include/auth.h" 33 #include "third_party/libsrtp/crypto/include/auth.h"
35 #endif // HAVE_SRTP 34 #endif // HAVE_SRTP
36 35
37 #if defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) 36 #if defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH)
38 37
39 #define EXTERNAL_HMAC_SHA1 SRTP_HMAC_SHA1 + 1 38 #define EXTERNAL_HMAC_SHA1 SRTP_HMAC_SHA1 + 1
40 #define HMAC_KEY_LENGTH 20 39 #define HMAC_KEY_LENGTH 20
41 40
42 // The HMAC context structure used to store authentication keys. 41 // The HMAC context structure used to store authentication keys.
(...skipping 23 matching lines...) Expand all
66 srtp_err_status_t external_hmac_compute(ExternalHmacContext* state, 65 srtp_err_status_t external_hmac_compute(ExternalHmacContext* state,
67 const void* message, 66 const void* message,
68 int msg_octets, 67 int msg_octets,
69 int tag_len, 68 int tag_len,
70 uint8_t* result); 69 uint8_t* result);
71 70
72 srtp_err_status_t external_crypto_init(); 71 srtp_err_status_t external_crypto_init();
73 72
74 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) 73 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH)
75 #endif // WEBRTC_PC_EXTERNALHMAC_H_ 74 #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