History

lavu/sha512: update length argument following sha+md5 changes

Clément Bœsch committed 9 years ago

Commit fcc4ed11 parent 651ee933 files · +10 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +1 −1
  2. libavutil/sha512.c +4 −0
  3. libavutil/sha512.h +5 −0
doc/APIchanges+1−1
@@ -16,7 +16,7 @@ libavutil: 2015-08-28 · 15 unmodified lines
16API changes, most recent first:16API changes, most recent first:
17 17
182017-xx-xx - xxxxxxxxxx182017-xx-xx - xxxxxxxxxx
19 Change av_sha_update() and av_md5_sum()/av_md5_update() length19 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
222017-05-05 - xxxxxxxxxx - lavc 57.94.100 - avcodec.h222017-05-05 - xxxxxxxxxx - lavc 57.94.100 - avcodec.h
libavutil/sha512.c+4−0
@@ -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
242void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len)243void av_sha512_update(AVSHA512* ctx, const uint8_t* data, unsigned int len)
244#else
245void 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
libavutil/sha512.h+5−0
@@ -28,6 +28,7 @@ · 27 unmodified lines
28#ifndef AVUTIL_SHA512_H28#ifndef AVUTIL_SHA512_H
29#define AVUTIL_SHA512_H29#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 with76 * @param data input data to update hash with
76 * @param len input data length77 * @param len input data length
77 */78 */
79#if FF_API_CRYPTO_SIZE_T
78void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len);80void av_sha512_update(struct AVSHA512* context, const uint8_t* data, unsigned int len);
81#else
82void 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.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t