On 04/23/2014 04:38 PM, Keegan McAllister wrote:
I opened this as a GitHub issue (https://github.com/mozilla/servo/issues/2217) 
but I thought I'd mention it here as well.

Rust already uses SipHash, which is supposed to be fast and crypto-strength.  
But we would need to run it twice to get 128 bits; 64 bits is not enough to 
assume collisions don't happen.

I'm not sure how relevant this is, but Rust does use 64-bit hashes for versioning and assumes collisions don't happen. We're assuming nobody is going to be attacking Rust symbols though, so it doesn't need to be truly 'secure'. On the other hand we also use 64-bit hashes for type ID's, and that is something somebody might want to forge for sure (though we don't use dynamic typing for much at all in Rust).

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to