Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have default hash function returns a digest #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bf/hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default_hash_function::default_hash_function(size_t seed)
{
}

size_t default_hash_function::operator()(object const& o) const
digest default_hash_function::operator()(object const& o) const
{
// FIXME: fall back to a generic universal hash function (e.g., HMAC/MD5) for
// too large objects.
Expand Down
4 changes: 2 additions & 2 deletions src/bf/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class default_hash_function

default_hash_function(size_t seed);

size_t operator()(object const& o) const;
digest operator()(object const& o) const;

private:
h3<size_t, max_obj_size> h3_;
h3<digest, max_obj_size> h3_;
};

/// A hasher which hashes an object *k* times.
Expand Down