summaryrefslogtreecommitdiff
path: root/libavutil/des.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-07-28 16:57:49 -0300
committerAnton Khirnov <anton@khirnov.net>2015-07-31 09:04:12 +0200
commitd9e8b47e3144262d6bc4681740411d4bdafad6ac (patch)
tree6d04eccc0224997286578e76e05559b9536950f9 /libavutil/des.h
parent5d8bea3bb2357bb304f8f771a4107039037c5549 (diff)
des: add av_des_alloc()
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/des.h')
-rw-r--r--libavutil/des.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/libavutil/des.h b/libavutil/des.h
index cda98122d3..7b82340219 100644
--- a/libavutil/des.h
+++ b/libavutil/des.h
@@ -24,10 +24,25 @@
#include <stdint.h>
-struct AVDES {
+/**
+ * @defgroup lavu_des DES
+ * @ingroup lavu_crypto
+ * @{
+ */
+
+#if FF_API_CRYPTO_CONTEXT
+typedef struct AVDES {
uint64_t round_keys[3][16];
int triple_des;
-};
+} AVDES;
+#else
+typedef struct AVDES AVDES;
+#endif
+
+/**
+ * Allocate an AVDES context.
+ */
+AVDES *av_des_alloc(void);
/**
* @brief Initializes an AVDES context.
@@ -58,4 +73,8 @@ void av_des_crypt(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count,
*/
void av_des_mac(struct AVDES *d, uint8_t *dst, const uint8_t *src, int count);
+/**
+ * @}
+ */
+
#endif /* AVUTIL_DES_H */