[MPlayer-dev-eng] Zattoo, AES, avutil

Rich Felker dalias at aerifal.cx
Mon Mar 12 21:34:35 CET 2007


On Mon, Mar 12, 2007 at 07:02:49PM +0100, Michael Niedermayer wrote:
> > SHA1 isn't much, see attached file
> 
> RSA isnt more either ...
> 
> anyway both RSA and SHA-1 should be added to libavutil, but these must be
> clean, small, simple and fast implementations ...
> 
> the one below fails in clean and small but can certainly serve as a starting
> point for a nicer implementation
> the most obvious problem it has is the use of macros and manually unroled
> loops instead of inline functions and normal for()
> the rest is simple plain stupidity, like writing to variables which are
> never read afterwards and doing otherwise silly things ...

Look at busybox source, libbb for a nice small implementation of sha1.

Rich



More information about the MPlayer-dev-eng mailing list