X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=third_party%2Fsha1.cc;h=a7390b3946d31eb40a978da254b94c37385b0b17;hb=HEAD;hp=32a64293f3e4170f67cd183071b26b7f0d2cc1ae;hpb=15f090d3b2f0bf3994aacd00ab07da3b1f65ea00;p=cumulus.git diff --git a/third_party/sha1.cc b/third_party/sha1.cc index 32a6429..a7390b3 100644 --- a/third_party/sha1.cc +++ b/third_party/sha1.cc @@ -1,9 +1,12 @@ /* sha1.cc - Functions to compute SHA1 message digest of data streams * according to the NIST specification FIPS-180-1. - * part of Cumulus: Smart Filesystem Backup to Dumb Servers + * part of Cumulus: Efficient Filesystem Backup to the Cloud * * Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. * Copyright (C) 2006-2007 The Regents of the University of California + * Copyright (C) 2012 The Cumulus Developers + * See the AUTHORS file for a list of Cumulus contributors. + * * Written by Scott G. Miller * Additional Credits: * Robert Klep -- Expansion function fix @@ -151,7 +154,7 @@ sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx) { #if !_STRING_ARCH_unaligned # define alignof(type) offsetof (struct { char c; type x; }, x) -# define UNALIGNED_P(p) (((size_t) p) % alignof (md5_uint32) != 0) +# define UNALIGNED_P(p) (1) if (UNALIGNED_P (buffer)) while (len > 64) {