summaryrefslogtreecommitdiff
path: root/libavutil/md5.h
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-05-05 13:04:24 +0200
committerClément Bœsch <cboesch@gopro.com>2017-05-05 13:04:38 +0200
commit651ee9346105b9d492e01172ab447c04d03fa32e (patch)
treee0aa99cb1538dd8198ea50e0bf3c4fb57d489177 /libavutil/md5.h
parent20e72faef6946cde8e59981ef511b824a01c5adb (diff)
parente435beb1ea5380a90774dbf51fdc8c941e486551 (diff)
Merge commit 'e435beb1ea5380a90774dbf51fdc8c941e486551'
* commit 'e435beb1ea5380a90774dbf51fdc8c941e486551': crypto: consistently use size_t as type for length parameters Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavutil/md5.h')
-rw-r--r--libavutil/md5.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/md5.h b/libavutil/md5.h
index 9571c1fa46..ca72ccbf83 100644
--- a/libavutil/md5.h
+++ b/libavutil/md5.h
@@ -27,6 +27,7 @@
#ifndef AVUTIL_MD5_H
#define AVUTIL_MD5_H
+#include <stddef.h>
#include <stdint.h>
#include "attributes.h"
@@ -63,7 +64,11 @@ void av_md5_init(struct AVMD5 *ctx);
* @param src input data to update hash with
* @param len input data length
*/
+#if FF_API_CRYPTO_SIZE_T
void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, int len);
+#else
+void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, size_t len);
+#endif
/**
* Finish hashing and output digest value.
@@ -80,7 +85,11 @@ void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
* @param src The data to hash
* @param len The length of the data, in bytes
*/
+#if FF_API_CRYPTO_SIZE_T
void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
+#else
+void av_md5_sum(uint8_t *dst, const uint8_t *src, size_t len);
+#endif
/**
* @}