1. 29 Dec, 2014 1 commit
  2. 09 Dec, 2014 1 commit
    • Mark Fasheh's avatar
      Add option to choose hash type used. · 4f905264
      Mark Fasheh authored
      This adds an option to duperemove (and csum-test), '--hash=' which allows
      the user to pick which algorithm is used for hashing blocks.
      Internally we make a hash_module structure which holds function pointers to
      the various hashing operations as well pointers to friendly and internal
      names. The init_hash() function is changed to take a string and will choose
      the module structure whose hash name matches that string.
      Aside from defining a module structure, the changes to each hash module c
      file are minimal - renaming functions and variables so we don't clash.
      Signed-off-by: 's avatarMark Fasheh <mfasheh@suse.de>
  3. 26 Nov, 2014 2 commits
  4. 25 Nov, 2014 3 commits
  5. 24 Nov, 2014 1 commit
    • Mark Fasheh's avatar
      xxhash: use xxhash directly · 75bad3b6
      Mark Fasheh authored
      Don't sum up the checksums as the resulting digest will be different for the
      same input depending on whether we use the one-shot or running checksum
      This does result in a smaller digest, padded to the end with zeros which
      doesn't look great (we can always fix that) but is correct.
      Signed-off-by: 's avatarMark Fasheh <mfasheh@suse.de>
  6. 22 Nov, 2014 3 commits
  7. 17 Nov, 2014 1 commit