12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef AVUTIL_AES_CTR_H
- #define AVUTIL_AES_CTR_H
- #include <stdint.h>
- #include "attributes.h"
- #include "version.h"
- #define AES_CTR_KEY_SIZE (16)
- #define AES_CTR_IV_SIZE (8)
- struct AVAESCTR;
- struct AVAESCTR *av_aes_ctr_alloc(void);
- int av_aes_ctr_init(struct AVAESCTR *a, const uint8_t *key);
- void av_aes_ctr_free(struct AVAESCTR *a);
- void av_aes_ctr_crypt(struct AVAESCTR *a, uint8_t *dst, const uint8_t *src, int size);
- const uint8_t* av_aes_ctr_get_iv(struct AVAESCTR *a);
- void av_aes_ctr_set_random_iv(struct AVAESCTR *a);
- void av_aes_ctr_set_iv(struct AVAESCTR *a, const uint8_t* iv);
- void av_aes_ctr_set_full_iv(struct AVAESCTR *a, const uint8_t* iv);
- void av_aes_ctr_increment_iv(struct AVAESCTR *a);
- #endif
|