#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "attributes.h"
#include "error.h"
#include "hmac.h"
#include "md5.h"
#include "sha.h"
#include "sha512.h"
#include "mem.h"
Go to the source code of this file.
|
| AVHMAC * | av_hmac_alloc (enum AVHMACType type) |
| | Allocate an AVHMAC context.
|
| |
| void | av_hmac_free (AVHMAC *c) |
| | Free an AVHMAC context.
|
| |
| void | av_hmac_init (AVHMAC *c, const uint8_t *key, unsigned int keylen) |
| | Initialize an AVHMAC context with an authentication key.
|
| |
| void | av_hmac_update (AVHMAC *c, const uint8_t *data, unsigned int len) |
| | Hash data with the HMAC.
|
| |
| int | av_hmac_final (AVHMAC *c, uint8_t *out, unsigned int outlen) |
| | Finish hashing and output the HMAC digest.
|
| |
| int | av_hmac_calc (AVHMAC *c, const uint8_t *data, unsigned int len, const uint8_t *key, unsigned int keylen, uint8_t *out, unsigned int outlen) |
| | Hash an array of data with a key.
|
| |
◆ MAX_HASHLEN
◆ MAX_BLOCKLEN
◆ DEFINE_ALGO_BITS_INIT
Value:
{ \
}
static AVFormatContext * ctx
static const uint8_t bits[8]
Definition at line 50 of file hmac.c.
◆ DEFINE_ALGO_INIT
| #define DEFINE_ALGO_INIT |
( |
| prefix | ) |
|
Value:
Definition at line 56 of file hmac.c.
◆ DEFINE_ALGO
Value:
{ \
} \
{ \
}
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition at line 62 of file hmac.c.
◆ hmac_final
| typedef void(* hmac_final) (void *ctx, uint8_t *dst) |
◆ hmac_update
| typedef void(* hmac_update) (void *ctx, const uint8_t *src, size_t len) |
◆ hmac_init
| typedef void(* hmac_init) (void *ctx) |