Unified · Split
| @@ -16,7 +16,7 @@ libavutil: 2015-08-28 · 15 unmodified lines | |||
| 16 | API changes, most recent first: | 16 | API changes, most recent first: |
| 17 | 17 | ||
| 18 | 2017-xx-xx - xxxxxxxxxx | 18 | 2017-xx-xx - xxxxxxxxxx |
| 19 | Change av_sha_update() and av_md5_sum()/av_md5_update() length | 19 | Change av_sha_update(), av_sha512_update() and av_md5_sum()/av_md5_update() length |
| 20 | parameter type to size_t at next major bump. | 20 | parameter type to size_t at next major bump. |
| 21 | 21 | ||
| 22 | 2017-05-05 - xxxxxxxxxx - lavc 57.94.100 - avcodec.h | 22 | 2017-05-05 - xxxxxxxxxx - lavc 57.94.100 - avcodec.h |
| @@ -239,7 +239,11 @@ av_cold int av_sha512_init(AVSHA512 *ctx, int bits) · 238 unmodified lines | |||
| 239 | return 0; | 239 | return 0; |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | #if FF_API_CRYPTO_SIZE_T | ||
| 242 | void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len) | 243 | void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len) |
| 244 | #else | ||
| 245 | void av_sha512_update(AVSHA512* ctx, const uint8_t* data, size_t len) | ||
| 246 | #endif | ||
| 243 | { | 247 | { |
| 244 | unsigned int i, j; | 248 | unsigned int i, j; |
| 245 | 249 | ||
| @@ -28,6 +28,7 @@ · 27 unmodified lines | |||
| 28 | #ifndef AVUTIL_SHA512_H | 28 | #ifndef AVUTIL_SHA512_H |
| 29 | #define AVUTIL_SHA512_H | 29 | #define AVUTIL_SHA512_H |
| 30 | 30 | ||
| 31 | #include <stddef.h> | ||
| 31 | #include <stdint.h> | 32 | #include <stdint.h> |
| 32 | 33 | ||
| 33 | #include "attributes.h" | 34 | #include "attributes.h" |
| @@ -75,7 +76,11 @@ int av_sha512_init(struct AVSHA512* context, int bits); · 41 unmodified lines | |||
| 75 | * @param data input data to update hash with | 76 | * @param data input data to update hash with |
| 76 | * @param len input data length | 77 | * @param len input data length |
| 77 | */ | 78 | */ |
| 79 | #if FF_API_CRYPTO_SIZE_T | ||
| 78 | void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len); | 80 | void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len); |
| 81 | #else | ||
| 82 | void av_sha512_update(struct AVSHA512* context, const uint8_t* data, size_t len); | ||
| 83 | #endif | ||
| 79 | 84 | ||
| 80 | /** | 85 | /** |
| 81 | * Finish hashing and output digest value. | 86 | * Finish hashing and output digest value. |