summaryrefslogtreecommitdiff
path: root/libavutil/ripemd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-1/+3
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil: Switch crypto APIs to size_tAndreas Rheinhardt2021-04-271-11/+12
| | | | | | | Announced in e435beb1ea5380a90774dbf51fdc8c941e486551. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavu: add missing stddef.h includes for size_t.Anton Khirnov2020-11-201-0/+1
|
* avutil/crypto: change length parameter to size_t on the remaining modulesJames Almer2018-02-151-0/+4
| | | | | | | See 651ee9346105b9d492e01172ab447c04d03fa32e fcc4ed1efa1a7575dc45fe57ce552af331941469 Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-54/+0
| | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avutil/ripemd: make rol macro more robust by adding parenthesesGanesh Ajjanagadde2015-10-281-1/+1
| | | | | | | | | This ensures that the macro remains correct in the sense of allowing expressions for value and bits, by placing the value and bits expressions within parentheses. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avutil: use EINVAL instead of -1 for the return code of crypto related init ↵Ganesh Ajjanagadde2015-10-181-1/+1
| | | | | | | | | | | functions These functions return an error typically when the key size is an incorrect number. AVERROR(EINVAL) is more specific than -1. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* ripemd: move ripemd{256, 320} into separate functionsJames Almer2015-05-071-132/+222
| | | | | | | | | | | | | This allows the removal of a few branches. Before: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 7.052 +- 0.010 After: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 6.865 +- 0.015 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/ripemd: Add a size optimized version of the transform functionsJames Almer2013-09-091-3/+72
| | | | | | | | When compiling with --enable-small, ripemd.o will weigh a few kilobytes less than it used to before the previous commit. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/ripemd: Fully unroll the transform function loopsJames Almer2013-09-091-59/+70
| | | | | | | | | | | | | crypto_bench RIPEMD-160 results using an AMD Athlon X2 7750+, mingw32-w64 GCC 4.8.1 x86_64 Before: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 12.342 +- 0.199 After: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 10.143 +- 0.192 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/ripemd:make const tables static constMichael Niedermayer2013-08-111-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/ripemd: adjust loop condition to silence CID1035716Michael Niedermayer2013-06-221-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: Add RIPEMD hashingJames Almer2013-06-151-0/+435
Includes RIPEMD-128, RIPEMD-160, RIPEMD-256 and RIPEMD-320 Signed-off-by: James Almer <jamrial@gmail.com>