#include "pc/external_hmac.h"
#include <stdlib.h>
#include <string.h>
#include "rtc_base/logging.h"
#include "rtc_base/zero_memory.h"
#include "third_party/libsrtp/include/srtp.h"
static const uint8_t kExternalHmacTestCase0Key[20] = …;
static const uint8_t kExternalHmacTestCase0Data[8] = …;
static const uint8_t kExternalHmacFakeTag[10] = …;
static const srtp_auth_test_case_t kExternalHmacTestCase0 = …;
static const char kExternalHmacDescription[] = …;
static const srtp_auth_type_t external_hmac = …;
srtp_err_status_t external_hmac_alloc(srtp_auth_t** a,
int key_len,
int out_len) { … }
srtp_err_status_t external_hmac_dealloc(srtp_auth_t* a) { … }
srtp_err_status_t external_hmac_init(void* state,
const uint8_t* key,
int key_len) { … }
srtp_err_status_t external_hmac_start(void* ) { … }
srtp_err_status_t external_hmac_update(void* ,
const uint8_t* ,
int ) { … }
srtp_err_status_t external_hmac_compute(void* ,
const uint8_t* ,
int ,
int tag_len,
uint8_t* result) { … }
srtp_err_status_t external_crypto_init() { … }