diff options
Diffstat (limited to 'libavutil/des.h')
-rw-r--r-- | libavutil/des.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/libavutil/des.h b/libavutil/des.h index 2feb0468db..7c96dd84e1 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 */ |