summaryrefslogtreecommitdiff
path: root/libavutil/aes.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/aes.h')
-rw-r--r--libavutil/aes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/aes.h b/libavutil/aes.h
index ccafc3f761..12e15501d3 100644
--- a/libavutil/aes.h
+++ b/libavutil/aes.h
@@ -23,4 +23,11 @@
struct AVAES;
+/**
+ * creates a AVAES context, which can be freed with av_free()
+ * @param key_bits 128, 192 or 256
+ * @param decrypt 0 for encryption, 1 for decryption
+ */
+struct AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt);
+
#endif /* AES_H */