Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fcc4ed1e
Commit
fcc4ed1e
authored
May 05, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/sha512: update length argument following sha+md5 changes
parent
651ee934
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
APIchanges
doc/APIchanges
+1
-1
sha512.c
libavutil/sha512.c
+4
-0
sha512.h
libavutil/sha512.h
+5
-0
No files found.
doc/APIchanges
View file @
fcc4ed1e
...
...
@@ -16,7 +16,7 @@ libavutil: 2015-08-28
API changes, most recent first:
2017-xx-xx - xxxxxxxxxx
Change av_sha_update() and av_md5_sum()/av_md5_update() length
Change av_sha_update()
, av_sha512_update()
and av_md5_sum()/av_md5_update() length
parameter type to size_t at next major bump.
2017-05-05 - xxxxxxxxxx - lavc 57.94.100 - avcodec.h
...
...
libavutil/sha512.c
View file @
fcc4ed1e
...
...
@@ -239,7 +239,11 @@ av_cold int av_sha512_init(AVSHA512 *ctx, int bits)
return
0
;
}
#if FF_API_CRYPTO_SIZE_T
void
av_sha512_update
(
AVSHA512
*
ctx
,
const
uint8_t
*
data
,
unsigned
int
len
)
#else
void
av_sha512_update
(
AVSHA512
*
ctx
,
const
uint8_t
*
data
,
size_t
len
)
#endif
{
unsigned
int
i
,
j
;
...
...
libavutil/sha512.h
View file @
fcc4ed1e
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment