Originally committed as revision 8381 to svn://svn.ffmpeg.org/ffmpeg/trunk
j = context->count & 63;
context->count += len;
+#ifdef CONFIG_SMALL
+ for( i = 0; i < len; i++ ){
+ context->buffer[ j++ ] = data[i];
+ if( 64 == j ){
+ transform(context->state, context->buffer);
+ j = 0;
+ }
+ }
+#else
if ((j + len) > 63) {
memcpy(&context->buffer[j], data, (i = 64-j));
transform(context->state, context->buffer);
}
else i = 0;
memcpy(&context->buffer[j], &data[i], len - i);
+#endif
}
void av_sha1_final(AVSHA1* context, uint8_t digest[20]){