summaryrefslogtreecommitdiff
path: root/libavutil/camellia.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-1/+5
| | | | | | | | | | 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>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-58/+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: 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>
* libavutil: camellia: remove unwanted memory loadsSupraja Meedinti2015-02-101-4/+2
| | | | | | lavu CAMELLIA size: 1048576 runs: 1024 time: 21.549 +- 0.17 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/camellia: Remove redundant castsMichael Niedermayer2015-02-091-4/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/camellia: Fix indention & whitespaceMichael Niedermayer2015-02-091-13/+13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: optimize camellia cipherSupraja Meedinti2015-02-091-10/+27
| | | | | | | | | | | | Before the changes : lavu CAMELLIA size: 1048576 runs: 1024 time: 32.541 +- 0.044 After the changes: lavu CAMELLIA size: 1048576 runs: 1024 time: 24.589 +- 0.066 Tested with crypto_bench on a Linux x86_64 OS with Intel Core i5-3210M CPU. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/camellia: cosmetic fixesGiorgio Vazzana2015-01-021-83/+80
| | | | | Signed-off-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/camellia: use K[2] instead of *K in generate_round_keys()Giorgio Vazzana2015-01-021-2/+2
| | | | | | | Additionally, change parameters order. Signed-off-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/camellia: make LR128() more robustGiorgio Vazzana2015-01-021-2/+2
| | | | | Signed-off-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: Added Camellia symmetric block cipherSupraja Meedinti2015-01-021-0/+458
Signed-off-by: Supraja Meedinti <supraja0493@gmail.com> Previous version of this patch reviewed-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>