Crates.io | lthash-rs |
lib.rs | lthash-rs |
version | 1.0.1 |
source | src |
created_at | 2023-07-21 11:28:09.745114 |
updated_at | 2023-07-24 09:19:57.398031 |
description | LtHash - Homomorphic Hash Function |
homepage | https://runtimemachines.io |
repository | https://github.com/runtime-machines/lthash-rs |
max_upload_size | |
id | 922375 |
size | 65,611 |
This repository contains an implementation of LtHash, as defined by Bellare and Micciancio and later specified more concretely by researchers at Facebook.
LtHash is vulnerable to multiset input collisions. A multiset is a
set containing more than one instance of a particular element. In particular, it is trivial to produce a collision in lthash16
by adding the same input to the hash 2^16 times. One way to prevent this is to concatenate each input with a unique piece of metadata, such as an index.
cargo build --release
cargo test
Licensed under Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the license, shall be licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.