/*
* Copyright (C) 2006 Michael Niedermayer (michaelni@gmx.at)
* Copyright (C) 2003-2005 by Christopher R. Hertel (crh@ubiqx.mn.org)
- * #inlcude LGPL license
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* References:
* IETF RFC 1321: The MD5 Message-Digest Algorithm
* simplified, cleaned and IMO redundant comments removed by michael
*
* if you use gcc, then version 4.1 or later and -fomit-frame-pointer is
- * strongly recommanded
+ * strongly recommended
*/
#include "common.h"
}\
a = b + (( a << t ) | ( a >> (32 - t) ));
-static void body(uint32_t ABCD[4], const uint32_t X[16]){
+static void body(uint32_t ABCD[4], uint32_t X[16]){
+
int t;
int i attribute_unused;
unsigned int a= ABCD[3];
for( i = 0; i < len; i++ ){
ctx->block[ ctx->b_used++ ] = src[i];
if( 64 == ctx->b_used ){
- body(ctx->ABCD, (const uint32_t*) ctx->block);
+ body(ctx->ABCD, (uint32_t*) ctx->block);
ctx->b_used = 0;
}
}
memset(&ctx->block[ctx->b_used], 0, 64 - ctx->b_used);
if( 56 < ctx->b_used ){
- body( ctx->ABCD, (const uint32_t*) ctx->block );
+ body( ctx->ABCD, (uint32_t*) ctx->block );
memset(ctx->block, 0, 64);
}
for(i=0; i<8; i++)
ctx->block[56+i] = (ctx->len << 3) >> (i<<3);
- body(ctx->ABCD, (const uint32_t*) ctx->block);
+ body(ctx->ABCD, (uint32_t*) ctx->block);
for(i=0; i<4; i++)
((uint32_t*)dst)[i]= le2me_32(ctx->ABCD[3-i]);