summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f1af37b)
size_t is the correct type to use for sizes.
API changes, most recent first:
API changes, most recent first:
+2016-xx-xx - xxxxxxx
+ Change av_sha_update() and av_md5_sum()/av_md5_update() length
+ parameter type to size_t at next major bump.
+
2016-xx-xx - xxxxxxx - lavc 57.29.0 - avcodec.h
Add AV_PKT_DATA_SPHERICAL packet side data to export AVSphericalMapping
information from containers.
2016-xx-xx - xxxxxxx - lavc 57.29.0 - avcodec.h
Add AV_PKT_DATA_SPHERICAL packet side data to export AVSphericalMapping
information from containers.
ctx->ABCD[3] = 0x67452301;
}
ctx->ABCD[3] = 0x67452301;
}
+#if FF_API_CRYPTO_SIZE_T
void av_md5_update(AVMD5 *ctx, const uint8_t *src, const int len)
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
AV_WL32(dst + 4 * i, ctx->ABCD[3 - i]);
}
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)
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
#ifndef AVUTIL_MD5_H
#define AVUTIL_MD5_H
#ifndef AVUTIL_MD5_H
#define AVUTIL_MD5_H
#include <stdint.h>
#include "attributes.h"
#include <stdint.h>
#include "attributes.h"
struct AVMD5 *av_md5_alloc(void);
void av_md5_init(struct AVMD5 *ctx);
struct AVMD5 *av_md5_alloc(void);
void av_md5_init(struct AVMD5 *ctx);
-void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len);
void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
+#if FF_API_CRYPTO_SIZE_T
+void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len);
void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
+#else
+void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, size_t len);
+void av_md5_sum(uint8_t *dst, const uint8_t *src, size_t len);
+#endif
-void av_sha_update(AVSHA* ctx, 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
#ifndef AVUTIL_SHA_H
#define AVUTIL_SHA_H
#ifndef AVUTIL_SHA_H
#define AVUTIL_SHA_H
#include <stdint.h>
#include "attributes.h"
#include <stdint.h>
#include "attributes.h"
/**
* Update hash value.
*
/**
* 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
*/
* @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.
/**
* Finish hashing and output digest value.
#ifndef FF_API_PKT_PTS
#define FF_API_PKT_PTS (LIBAVUTIL_VERSION_MAJOR < 56)
#endif
#ifndef FF_API_PKT_PTS
#define FF_API_PKT_PTS (LIBAVUTIL_VERSION_MAJOR < 56)
#endif
+#ifndef FF_API_CRYPTO_SIZE_T
+#define FF_API_CRYPTO_SIZE_T (LIBAVUTIL_VERSION_MAJOR < 56)
+#endif