X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Fblowfish.h;h=d163fd3578becff370973ab651596d3a2fbfdf1e;hb=0cbae3763d96f40e0eae0c9f04794a38e1f78ca6;hp=0b004532dee08e6b15102251784abef32989061e;hpb=ba12ba859aabfa7153ba397d869db13acdaba340;p=ffmpeg diff --git a/libavutil/blowfish.h b/libavutil/blowfish.h index 0b004532dee..d163fd3578b 100644 --- a/libavutil/blowfish.h +++ b/libavutil/blowfish.h @@ -23,6 +23,7 @@ #define AVUTIL_BLOWFISH_H #include +#include "version.h" /** * @defgroup lavu_blowfish Blowfish @@ -30,12 +31,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.