|
World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Функции | |
| 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) |
| struct AVAESCTR* av_aes_ctr_alloc | ( | void | ) |
Allocate an AVAESCTR context.
| int av_aes_ctr_init | ( | struct AVAESCTR * | a, |
| const uint8_t * | key | ||
| ) |
Initialize an AVAESCTR context.
| key | encryption key, must have a length of AES_CTR_KEY_SIZE |
| void av_aes_ctr_free | ( | struct AVAESCTR * | a | ) |
Release an AVAESCTR context.
Process a buffer using a previously initialized context.
| dst | destination array, can be equal to src |
| src | source array, can be equal to dst |
| size | the size of src and dst |
| const uint8_t* av_aes_ctr_get_iv | ( | struct AVAESCTR * | a | ) |
Get the current iv
| void av_aes_ctr_set_random_iv | ( | struct AVAESCTR * | a | ) |
Generate a random iv
Forcefully change the "full" 16-byte iv, including the counter
| void av_aes_ctr_increment_iv | ( | struct AVAESCTR * | a | ) |
Increment the top 64 bit of the iv (performed after each frame)