FFmpeg
1.2.4
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
debian
tmp
usr
include
libavutil
hmac.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Martin Storsjo
3
*
4
* This file is part of FFmpeg.
5
*
6
* FFmpeg is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* FFmpeg is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with FFmpeg; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef AVUTIL_HMAC_H
22
#define AVUTIL_HMAC_H
23
24
#include <stdint.h>
25
32
enum
AVHMACType
{
33
AV_HMAC_MD5
,
34
AV_HMAC_SHA1
,
35
};
36
37
typedef
struct
AVHMAC
AVHMAC
;
38
43
AVHMAC
*
av_hmac_alloc
(
enum
AVHMACType
type);
44
49
void
av_hmac_free
(
AVHMAC
*ctx);
50
57
void
av_hmac_init
(
AVHMAC
*ctx,
const
uint8_t
*
key
,
unsigned
int
keylen
);
58
65
void
av_hmac_update
(
AVHMAC
*ctx,
const
uint8_t
*
data
,
unsigned
int
len
);
66
74
int
av_hmac_final
(
AVHMAC
*ctx,
uint8_t
*
out
,
unsigned
int
outlen);
75
87
int
av_hmac_calc
(
AVHMAC
*ctx,
const
uint8_t
*
data
,
unsigned
int
len
,
88
const
uint8_t
*
key
,
unsigned
int
keylen
,
89
uint8_t
*
out
,
unsigned
int
outlen);
90
95
#endif
/* AVUTIL_HMAC_H */
Generated on Fri Nov 29 2013 19:14:52 for FFmpeg by
1.8.1.2