Replace boost::scoped_ptr with std::unique_ptr.
[cumulus.git] / third_party / sha1.cc
index 32a6429..a7390b3 100644 (file)
@@ -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 <robert@ilse.nl>  -- 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)
          {