diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-12-15 12:46:03 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-01-09 15:17:43 +0100 |
commit | e435beb1ea5380a90774dbf51fdc8c941e486551 (patch) | |
tree | abfca5d84053a357e12b423938a1f3415ea0aa88 /libavutil/md5.c | |
parent | f1af37b51033ad90e56a8d7dfcc366f2bd9d2fed (diff) | |
download | ffmpeg-e435beb1ea5380a90774dbf51fdc8c941e486551.tar.gz |
crypto: consistently use size_t as type for length parameters
size_t is the correct type to use for sizes.
Diffstat (limited to 'libavutil/md5.c')
-rw-r--r-- | libavutil/md5.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/md5.c b/libavutil/md5.c index 94f068109c..1946d78317 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -146,7 +146,11 @@ void av_md5_init(AVMD5 *ctx) ctx->ABCD[3] = 0x67452301; } +#if FF_API_CRYPTO_SIZE_T void av_md5_update(AVMD5 *ctx, const uint8_t *src, const int len) +#else +void av_md5_update(AVMD5 *ctx, const uint8_t *src, size_t len) +#endif { int i, j; @@ -177,7 +181,11 @@ void av_md5_final(AVMD5 *ctx, uint8_t *dst) AV_WL32(dst + 4 * i, ctx->ABCD[3 - i]); } +#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 { AVMD5 ctx; |