compare-by-hash (was Re: sharing /etc/passwd)

From: Colin Percival (cperciva_at_wadham.ox.ac.uk)
Date: 09/27/04

  • Next message: Giorgos Keramidas: "Re: compare-by-hash (was Re: sharing /etc/passwd)"
    Date: Sun, 26 Sep 2004 17:25:32 -0700
    To: Giorgos Keramidas <keramida@freebsd.org>
    
    

    Giorgos Keramidas wrote:
    > After reading a nice paper by Val Henson[1] I'm not so sure I'd trust
    > sensitive information like password data to rsync without making sure
    > that compare-by-hash is disabled if at all possible.

    If you're going to disable compare-by-hash, you might as well just use
    rcp; but there's no theoretical justification for disabling
    compare-by-hash. Henson's paper points out a number of cases where
    hashing causes problems, but none of these are issues with hashing
    itself; rather, the problems arise from using hashing with an
    insufficient number of bits. Obviously if you're searching for SHA1
    collisions, you shouldn't index your data by SHA1 hash... you shouldn't
    use a 160 bit hash *any* time that you're doing O(2^80) work.

    The above notwithstanding, rsync's choice of hash function leaves
    something to be desired; MD4 is completely broken, and (while it is
    still adequate for random inputs) it is easy to construct files which
    rsync will incorrectly synchronize. (It's also trivial to construct
    files which consume ~100 times more cpu time on the server than normal
    -- unfortunately, this is an unavoidable consequence of using a fixed
    rolling hash function.)

    Colin Percival
    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"


  • Next message: Giorgos Keramidas: "Re: compare-by-hash (was Re: sharing /etc/passwd)"