diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-05-05 13:21:39 +0200 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-05-05 13:24:35 +0200 |
commit | fcc4ed1efa1a7575dc45fe57ce552af331941469 (patch) | |
tree | 0fb296c74a93b46bfa93ce963541656bad3f5041 /libavutil/sha512.h | |
parent | 651ee9346105b9d492e01172ab447c04d03fa32e (diff) | |
download | ffmpeg-fcc4ed1efa1a7575dc45fe57ce552af331941469.tar.gz |
lavu/sha512: update length argument following sha+md5 changes
Diffstat (limited to 'libavutil/sha512.h')
-rw-r--r-- | libavutil/sha512.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/sha512.h b/libavutil/sha512.h index 5bac184cf3..bef714b41c 100644 --- a/libavutil/sha512.h +++ b/libavutil/sha512.h @@ -28,6 +28,7 @@ #ifndef AVUTIL_SHA512_H #define AVUTIL_SHA512_H +#include <stddef.h> #include <stdint.h> #include "attributes.h" @@ -75,7 +76,11 @@ int av_sha512_init(struct AVSHA512* context, int bits); * @param data input data to update hash with * @param len input data length */ +#if FF_API_CRYPTO_SIZE_T void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len); +#else +void av_sha512_update(struct AVSHA512* context, const uint8_t* data, size_t len); +#endif /** * Finish hashing and output digest value. |