Simplify expression as suggested by Måns Rullgård
Originally committed as revision 21756 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make SHA digest function write digest value with AV_WN32 instead of assumingthat output may be written as uint32_t since output buffer may not be aligned(and it's silly to force alignment on it) and it does not work in that caseproperly on some architectures....
Mark conditionally used variable T2 as av_unused; avoids the warning:libavutil/sha.c:183: warning: unused variable `T2'
Originally committed as revision 19551 to svn://svn.ffmpeg.org/ffmpeg/trunk
cosmetics: reindent after last commit
Originally committed as revision 19450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add SHA-2 hashing
Originally committed as revision 19449 to svn://svn.ffmpeg.org/ffmpeg/trunk
Prepare SHA code to handle SHA-2 as well. For now rename files and functionsand leave av_sha1_* functions for compatibility until next major bump.
Originally committed as revision 19394 to svn://svn.ffmpeg.org/ffmpeg/trunk