summaryrefslogtreecommitdiff
path: root/libavutil/blowfish.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/blowfish.h')
-rw-r--r--libavutil/blowfish.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavutil/blowfish.h b/libavutil/blowfish.h
index 8c29536cfe..4f86bf7cfb 100644
--- a/libavutil/blowfish.h
+++ b/libavutil/blowfish.h
@@ -22,6 +22,7 @@
#define AVUTIL_BLOWFISH_H
#include <stdint.h>
+#include "version.h"
/**
* @defgroup lavu_blowfish Blowfish
@@ -29,12 +30,21 @@
* @{
*/
+#if FF_API_CRYPTO_CONTEXT
#define AV_BF_ROUNDS 16
typedef struct AVBlowfish {
uint32_t p[AV_BF_ROUNDS + 2];
uint32_t s[4][256];
} AVBlowfish;
+#else
+typedef struct AVBlowfish AVBlowfish;
+#endif
+
+/**
+ * Allocate an AVBlowfish context.
+ */
+AVBlowfish *av_blowfish_alloc(void);
/**
* Initialize an AVBlowfish context.