22 #ifndef AVUTIL_AES_CTR_H
23 #define AVUTIL_AES_CTR_H
30 #define AES_CTR_KEY_SIZE (16)
31 #define AES_CTR_IV_SIZE (8)
Macro definitions for various function/variable attributes.
const uint8_t * av_aes_ctr_get_iv(struct AVAESCTR *a)
Get the current iv.
int av_aes_ctr_init(struct AVAESCTR *a, const uint8_t *key)
Initialize an AVAESCTR context.
struct AVAESCTR * av_aes_ctr_alloc(void)
Allocate an AVAESCTR context.
Libavutil version macros.
void av_aes_ctr_set_random_iv(struct AVAESCTR *a)
Generate a random iv.
void av_aes_ctr_crypt(struct AVAESCTR *a, uint8_t *dst, const uint8_t *src, int size)
Process a buffer using a previously initialized context.
void av_aes_ctr_free(struct AVAESCTR *a)
Release an AVAESCTR context.
void av_aes_ctr_set_iv(struct AVAESCTR *a, const uint8_t *iv)
Forcefully change the iv.
void av_aes_ctr_increment_iv(struct AVAESCTR *a)
Increment the top 64 bit of the iv (performed after each frame)