OLD | NEW |
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 |
11 #ifndef TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ | 11 #ifndef WEBRTC_PC_EXTERNALHMAC_H_ |
12 #define TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ | 12 #define WEBRTC_PC_EXTERNALHMAC_H_ |
13 | 13 |
14 // External libsrtp HMAC auth module which implements methods defined in | 14 // External libsrtp HMAC auth module which implements methods defined in |
15 // auth_type_t. | 15 // auth_type_t. |
16 // The default auth module will be replaced only when the ENABLE_EXTERNAL_AUTH | 16 // The default auth module will be replaced only when the ENABLE_EXTERNAL_AUTH |
17 // flag is enabled. This allows us to access to authentication keys, | 17 // flag is enabled. This allows us to access to authentication keys, |
18 // as the default auth implementation doesn't provide access and avoids | 18 // as the default auth implementation doesn't provide access and avoids |
19 // hashing each packet twice. | 19 // hashing each packet twice. |
20 | 20 |
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 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 err_status_t external_hmac_compute(ExternalHmacContext* state, | 66 err_status_t external_hmac_compute(ExternalHmacContext* state, |
67 const void* message, | 67 const void* message, |
68 int msg_octets, | 68 int msg_octets, |
69 int tag_len, | 69 int tag_len, |
70 uint8_t* result); | 70 uint8_t* result); |
71 | 71 |
72 err_status_t external_crypto_init(); | 72 err_status_t external_crypto_init(); |
73 | 73 |
74 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) | 74 #endif // defined(HAVE_SRTP) && defined(ENABLE_EXTERNAL_AUTH) |
75 #endif // TALK_SESSION_MEDIA_EXTERNAL_HMAC_H_ | 75 #endif // WEBRTC_PC_EXTERNALHMAC_H_ |
OLD | NEW |