[FFmpeg-devel] [PATCH 06/11] lavu/aes: add x86 AESNI optimizations
Michael Niedermayer
michael at niedermayer.cc
Mon Oct 19 13:20:40 CEST 2015
On Mon, Oct 19, 2015 at 04:31:23AM -0500, Rodger Combs wrote:
> crypto_bench comparison for AES-128-EBC:
>
> lavu_aesni AES-128-ECB size: 1048576 runs: 1024 time: 0.596 +- 0.081
> lavu_c AES-128-ECB size: 1048576 runs: 1024 time: 17.007 +- 2.131
> crypto AES-128-ECB size: 1048576 runs: 1024 time: 0.612 +- 1.857
> gcrypt AES-128-ECB size: 1048576 runs: 1024 time: 1.123 +- 0.224
> tomcrypt AES-128-ECB size: 1048576 runs: 1024 time: 9.038 +- 0.790
>
> Improved-By: Henrik Gramner <henrik at gramner.com>
> ---
> libavutil/aes.c | 4 +++
> libavutil/aes_internal.h | 2 ++
> libavutil/x86/Makefile | 4 ++-
> libavutil/x86/aes.asm | 91 ++++++++++++++++++++++++++++++++++++++++++++++++
> libavutil/x86/aes_init.c | 37 ++++++++++++++++++++
> 5 files changed, 137 insertions(+), 1 deletion(-)
> create mode 100644 libavutil/x86/aes.asm
> create mode 100644 libavutil/x86/aes_init.c
not sure its this patch or another in the series (as i tested with
all applied)
but
./ffmpeg -i matrixbench_mpeg2.mpg -encryption_key 0123456789abcdef0011223344556677 -encryption_iv aabbccddeeff11335577999876542222 crypto:file-crypt.nut
./ffmpeg -decryption_key 0123456789abcdef0011223344556677 -decryption_iv aabbccddeeff11335577999876542222 -i crypto:file-crypt.nut
[nut @ 0x2179960] stream header 1 checksum mismatch
[nut @ 0x2179960] Not all stream headers found.
crypto:file-crypt.nut: Invalid data found when processing input
This works fine if an old version of ffmpeg is used for decryption
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151019/b9b30f28/attachment.sig>
More information about the ffmpeg-devel
mailing list