Browse Source

av_aes_init()

Originally committed as revision 7521 to svn://svn.ffmpeg.org/ffmpeg/trunk
Michael Niedermayer 18 years ago
parent
commit
f32f5122ce
1 changed files with 7 additions and 0 deletions
  1. 7 0
      libavutil/aes.h

+ 7 - 0
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 */