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

Michael Niedermayer michaelni
Fri Jul 17 05:07:13 CEST 2009


On Thu, Jul 16, 2009 at 08:28:46AM +0300, Kostya wrote:
> 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

ok

[..]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090717/39666e35/attachment.pgp>



More information about the ffmpeg-devel mailing list