Andreas Rheinhardt
636631d9db
Remove unnecessary libavutil/(avutil|common|internal).h inclusions
...
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>
3 years ago
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
...
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
9 years ago
Diego Biurrun
3b08d9d932
testprogs: K&R formatting cosmetics
9 years ago
Diego Biurrun
439929859a
testprogs: Clean up #includes
9 years ago
Diego Biurrun
52385410b7
des-test: Move a variable declaration to avoid an ifdef
9 years ago
Ganesh Ajjanagadde
07d4fe3a87
avutil: use EINVAL instead of -1 for the return code of crypto related init 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>
9 years ago
James Almer
3d1690b8c6
avutil: undo FF_API_CRYPTO_CONTEXT deprecation
...
It's been argued that the benefits of the current implementation far outweight
those of making the structs opaque.
This deprecation is not present in any release, so it can be safely removed.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
d9e8b47e31
des: add av_des_alloc()
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Diego Biurrun
a0b901a348
Drop pointless directory name prefixes from #includes in the current dir
11 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
12 years ago
Michael Niedermayer
270a325f0c
av_des_init: suppress warning about unused parameter
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Mans Rullgard
980f81d961
Use av_gettime() in various places
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
183c3fa48a
des: Fix half a dozen warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
d086c1203c
Add coverage exclusions for test code.
...
For some of the code e.g. doing timing measurements there is no
real point in running regression testing on it, thus it should
not be counted against coverage.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
David Goldwich
b3e144a7df
des: add possibility to calculate DES-CBC-MAC with small buffer
...
This patch adds the possibility to calculate the DES-CBC-MAC of a
source buffer (i.e. the last block of the buffer encrypted in CBC
mode) without having to allocate a destination buffer that is as
long as the complete source buffer, but instead only 8 bytes
for the MAC.
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Mans Rullgard
bd39c07688
des: fix #if conditional around P_shuffle
...
CONFIG_SMALL is always defined as 0 or 1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
9e52a40695
des: allow unaligned input and output buffers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
91c9aa0941
Move some conditionally used code below the appropriate #ifdef.
14 years ago
Mans Rullgard
66fe5970ab
des: reduce number of iterations in test program
...
Testing a million random keys takes annoying long time.
1000 iterations should be enough.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
adbfc605f6
doxygen: Consistently use '@' instead of '\' for Doxygen markup.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Måns Rullgård
8fc0162ac4
Add av_ prefix to bswap macros
...
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
e6b22522c9
bswap: change ME to NE in macro names
...
Other parts of FFmpeg use NE (native endian) rather than ME (machine).
This makes it consistent.
Originally committed as revision 24169 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c67278098d
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
504ffed19f
Mark non-exported functions in test and example programs as static.
...
Originally committed as revision 18259 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
3fb1084306
Remove/replace code disabled by major version bump.
...
Originally committed as revision 17875 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
25a03ba358
100l, don't run tests twice, this was some forgotten debugging code.
...
Originally committed as revision 16975 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
551a0c796e
Fix a bug in 3DEC CBC decryption and add more extensive tests based on
...
the official test vectors.
Originally committed as revision 16974 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
61eb8cc420
Update DES test code to use the new public API.
...
Originally committed as revision 16972 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
bc17cc01ed
Add support for 3DES to DES module
...
Originally committed as revision 16971 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
1a534c7f1e
Add and use a public API for RC4 and DES, analogous to the AES API.
...
Originally committed as revision 16970 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7a845019c1
Avoid unused variable warning when compiling DES test program.
...
Originally committed as revision 16715 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
93826f561d
Fix des-test compilation.
...
Originally committed as revision 12889 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
85074d3c93
Reapply r12489: Add pure, const and malloc attributes to proper functions
...
in libavutil.
Fix a compilation failure in r12489.
Originally committed as revision 12498 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Benoit Fouet
2119bb8f51
revert r12489.
...
Originally committed as revision 12490 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Zuxy Meng
6544f48f03
Pure, const and malloc attributes to libavutil.
...
Patch by Zuxy Meng: zuxy meng gmail com
Original thread:
[FFmpeg-devel] [PATCH] Pure, const and malloc attributes to libavutil
Date: 03/18/2008 6:09 AM
Originally committed as revision 12489 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
2e9ad69aaf
Add support for DES en- and decryption.
...
Originally committed as revision 10810 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago