ffmpeg.libavutil.hmac

Undocumented in source.

Members

Enums

AVHMACType
enum AVHMACType

@defgroup lavu_hmac HMAC @ingroup lavu_crypto @{

Functions

av_hmac_alloc
AVHMAC* av_hmac_alloc(AVHMACType type)

Allocate an AVHMAC context. @param type The hash function used for the HMAC.

av_hmac_calc
int av_hmac_calc(AVHMAC* ctx, const(ubyte)* data, uint len, const(ubyte)* key, uint keylen, ubyte* out_, uint outlen)

Hash an array of data with a key. @param ctx The HMAC context @param data The data to hash @param len The length of the data, in bytes @param key The authentication key @param keylen The length of the key, in bytes @param out The output buffer to write the digest into @param outlen The length of the out buffer, in bytes @return The number of bytes written to out, or a negative error code.

av_hmac_final
int av_hmac_final(AVHMAC* ctx, ubyte* out_, uint outlen)

Finish hashing and output the HMAC digest. @param ctx The HMAC context @param out The output buffer to write the digest into @param outlen The length of the out buffer, in bytes @return The number of bytes written to out, or a negative error code.

av_hmac_free
void av_hmac_free(AVHMAC* ctx)

Free an AVHMAC context. @param ctx The context to free, may be NULL

av_hmac_init
void av_hmac_init(AVHMAC* ctx, const(ubyte)* key, uint keylen)

Initialize an AVHMAC context with an authentication key. @param ctx The HMAC context @param key The authentication key @param keylen The length of the key, in bytes

av_hmac_update
void av_hmac_update(AVHMAC* ctx, const(ubyte)* data, uint len)

Hash data with the HMAC. @param ctx The HMAC context @param data The data to hash @param len The length of the data, in bytes

Structs

AVHMAC
struct AVHMAC
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta