]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/sha.h
Add av_log_{ask_for_sample|missing_feature} replacements to libavutil
[ffmpeg] / libavutil / sha.h
index df261fa4b57a448b4dd84ba16967f84f791409e4..4c9a0c90950d116ae8f7e5114ee6198819e12403 100644 (file)
 
 #include <stdint.h>
 
-extern const int av_sha_size;
+#include "attributes.h"
+#include "version.h"
+
+/**
+ * @defgroup lavu_sha SHA
+ * @ingroup lavu_crypto
+ * @{
+ */
+
+#if FF_API_CONTEXT_SIZE
+extern attribute_deprecated const int av_sha_size;
+#endif
 
 struct AVSHA;
 
+/**
+ * Allocate an AVSHA context.
+ */
+struct AVSHA *av_sha_alloc(void);
+
 /**
  * Initialize SHA-1 or SHA-2 hashing.
  *
@@ -53,4 +69,8 @@ void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len)
  */
 void av_sha_final(struct AVSHA* context, uint8_t *digest);
 
+/**
+ * @}
+ */
+
 #endif /* AVUTIL_SHA_H */