X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Faes.h;h=1ca853d93073a8420749ead394d2b36dad710c4a;hb=20c68378807ff0b24897f999445415fae10c430b;hp=438ba170e46d2aaf24fc6c85f914c15bc02b7e01;hpb=5b21bdabe43611385d1d55a21d5b1f607b133d29;p=ffmpeg diff --git a/libavutil/aes.h b/libavutil/aes.h index 438ba170e46..1ca853d9307 100644 --- a/libavutil/aes.h +++ b/libavutil/aes.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef FFMPEG_AES_H -#define FFMPEG_AES_H +#ifndef AVUTIL_AES_H +#define AVUTIL_AES_H #include @@ -28,20 +28,20 @@ extern const int av_aes_size; struct AVAES; /** - * initializes an AVAES context + * Initializes an AVAES context. * @param key_bits 128, 192 or 256 * @param decrypt 0 for encryption, 1 for decryption */ int av_aes_init(struct AVAES *a, const uint8_t *key, int key_bits, int decrypt); /** - * encrypts / decrypts. + * Encrypts / decrypts. * @param count number of 16 byte blocks * @param dst destination array, can be equal to src * @param src source array, can be equal to dst * @param iv initialization vector for CBC mode, if NULL then ECB will be used * @param decrypt 0 for encryption, 1 for decryption */ -void av_aes_crypt(struct AVAES *a, uint8_t *dst, uint8_t *src, int count, uint8_t *iv, int decrypt); +void av_aes_crypt(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt); -#endif /* FFMPEG_AES_H */ +#endif /* AVUTIL_AES_H */