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/sha.h | |
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/sha.h')
-rw-r--r-- | libavutil/sha.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavutil/sha.h b/libavutil/sha.h index 86ea0b065e..c0c7cd1af1 100644 --- a/libavutil/sha.h +++ b/libavutil/sha.h @@ -21,6 +21,7 @@ #ifndef AVUTIL_SHA_H #define AVUTIL_SHA_H +#include <stddef.h> #include <stdint.h> #include "attributes.h" @@ -51,11 +52,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. |