]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/sha.h
lavc, lavu: move frame cropping to a convenience function
[ffmpeg] / libavutil / sha.h
index c7558a89646b1ba2fba6445eb3a4970c0852f128..c0180e5729a2e9232bdbf387b9b74d6acc25e943 100644 (file)
@@ -27,6 +27,7 @@
 #ifndef AVUTIL_SHA_H
 #define AVUTIL_SHA_H
 
+#include <stddef.h>
 #include <stdint.h>
 
 #include "attributes.h"
@@ -69,11 +70,15 @@ int av_sha_init(struct AVSHA* context, int bits);
 /**
  * Update hash value.
  *
- * @param context hash function context
+ * @param ctx     hash function context
  * @param data    input data to update hash with
  * @param len     input data length
  */
-void av_sha_update(struct AVSHA* context, const uint8_t* data, unsigned int len);
+#if FF_API_CRYPTO_SIZE_T
+void av_sha_update(struct AVSHA *ctx, const uint8_t *data, unsigned int len);
+#else
+void av_sha_update(struct AVSHA *ctx, const uint8_t *data, size_t len);
+#endif
 
 /**
  * Finish hashing and output digest value.