des: add possibility to calculate DES-CBC-MAC with small buffer
authorDavid Goldwich <david.goldwich@gmail.com>
Fri, 2 Sep 2011 06:20:58 +0000 (08:20 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 21 Sep 2011 06:28:20 +0000 (08:28 +0200)
commitb3e144a7dfc6953df3b3e478eb8b8521ab5c6ecc
tree7a560a4854c9316d3e7e64bdbc14cb30e8734716
parent3ffe32eb96e2414bdd87b353953d77fb83eca8ae
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>
libavutil/des.c
libavutil/des.h