Mercurial > libavutil.hg
comparison sha1.c @ 304:a9cd369e2c4b libavutil
10l
author | michael |
---|---|
date | Tue, 13 Mar 2007 10:34:52 +0000 |
parents | 5b46b6b71fe2 |
children | 18d523d5c838 |
comparison
equal
deleted
inserted
replaced
303:5b46b6b71fe2 | 304:a9cd369e2c4b |
---|---|
142 memcpy(&context->buffer[j], data, (i = 64-j)); | 142 memcpy(&context->buffer[j], data, (i = 64-j)); |
143 transform(context->state, context->buffer); | 143 transform(context->state, context->buffer); |
144 for ( ; i + 63 < len; i += 64) { | 144 for ( ; i + 63 < len; i += 64) { |
145 transform(context->state, &data[i]); | 145 transform(context->state, &data[i]); |
146 } | 146 } |
147 j=0; | |
147 } | 148 } |
148 else i = 0; | 149 else i = 0; |
149 memcpy(&context->buffer[j], &data[i], len - i); | 150 memcpy(&context->buffer[j], &data[i], len - i); |
150 } | 151 } |
151 | 152 |