Andreas Rheinhardt
a240097ecd
avutil: Switch crypto APIs to size_t
...
Announced in e435beb1ea
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
800feae5d6
lavu: add missing stddef.h includes for size_t.
4 years ago
James Almer
8a8d0b319a
avutil/crypto: change length parameter to size_t on the remaining modules
...
See 651ee93461
fcc4ed1efa
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
NagaChaitanya Vellanki
285fda0937
Add tests for functions in hash.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Reimar Döffinger
2ca7edda89
lavu/hash.c: Add missing "static const".
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Nicolas George
b804eb4323
lavu/hash: add hash_final helpers.
...
The helpers use local memory to compute the final hash,
making AV_HASH_MAX_SIZE safe to use.
11 years ago
James Almer
4a0d603072
lavu/hash: Add support for RIPEMD
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
b6249acae6
lavu/hash: Add support for SHA-2 512
...
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago
James Almer
35188e91ef
lavu/hash: Fix CRC32 calculation
...
Initialize it with UINT32_MAX and xor the result with UINT32_MAX
as well.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
c55c715c81
lavu/hash: Fix adler32 calculation
...
Adler must be initialized with a non zero value.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
James Almer
dc7656279a
lavu/hash: Fix name of SHA224
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Reimar Döffinger
7d1d596817
Add a generic hash API.
...
Also use this API in framemd5.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago