[FFmpeg-devel] [PATCH] Add SHA-2

Kostya kostya.shishkov
Thu Jul 16 07:28:46 CEST 2009


On Wed, Jul 15, 2009 at 05:20:15PM +0200, Michael Niedermayer wrote:
> On Wed, Jul 15, 2009 at 05:53:24PM +0300, Kostya wrote:
[...]
> >  int av_sha_init(AVSHA* ctx, int bits)
> >  {
> > +    if (bits & 0x1F)
> > +        return -1;
> > +    ctx->digest_len = bits >> 5;
> > +    switch (ctx->digest_len) {
> 
> switch(bits)
> and te if() becomes useless

ok
 
> [...]
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sha2.patch
Type: text/x-diff
Size: 7848 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090716/f4281929/attachment.patch>



More information about the ffmpeg-devel mailing list