chromium/third_party/webrtc/pc/external_hmac.cc

/*
 *  Copyright 2014 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "pc/external_hmac.h"

#include <stdlib.h>  // For malloc/free.
#include <string.h>

#include "rtc_base/logging.h"
#include "rtc_base/zero_memory.h"
#include "third_party/libsrtp/include/srtp.h"

// Begin test case 0 */
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[] =;

// srtp_auth_type_t external_hmac is the hmac metaobject

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* /*state*/) {}

srtp_err_status_t external_hmac_update(void* /*state*/,
                                       const uint8_t* /*message*/,
                                       int /*msg_octets*/) {}

srtp_err_status_t external_hmac_compute(void* /*state*/,
                                        const uint8_t* /*message*/,
                                        int /*msg_octets*/,
                                        int tag_len,
                                        uint8_t* result) {}

srtp_err_status_t external_crypto_init() {}