~ubuntu-branches/ubuntu/jaunty/clamav/jaunty-backports

« back to all changes in this revision

Viewing changes to libclamav/sha256.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-10-02 17:11:00 UTC
  • mfrom: (0.3.1 lucid-proposed)
  • Revision ID: james.westby@ubuntu.com-20101002171100-0erjjoucua6kw2pc
Tags: 0.96.3+dfsg-2ubuntu0.10.04.1~jaunty1
* Source backport for Jaunty
  - Change build-dep on libtdl-dev to libtdl7-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
  W = buf;
250
250
 
251
251
#ifndef SHA256_UNROLL
252
 
#define SHA256_UNROLL 1
 
252
#define SHA256_UNROLL 4
253
253
#endif /* !SHA256_UNROLL */
254
254
 
255
255
#if SHA256_UNROLL == 1
324
324
  uint32_t bufferBytesLeft;
325
325
  uint32_t bytesToCopy;
326
326
  int needBurn = 0;
327
 
 
328
327
#ifdef SHA256_FAST_COPY
329
328
  if (sc->bufferLength) {
330
329
    bufferBytesLeft = 64L - sc->bufferLength;