diff --git a/include/ircd/hash.h b/include/ircd/hash.h index 60d8bab00..6c66e80e7 100644 --- a/include/ircd/hash.h +++ b/include/ircd/hash.h @@ -59,10 +59,7 @@ struct ircd::crh::hash virtual void digest(const mutable_buffer &) const = 0; /// Samples the digest and modifies the state (depending on impl) - virtual void finalize(const mutable_buffer &b) - { - digest(b); - } + virtual void finalize(const mutable_buffer &b); /// Appends to the message virtual void update(const const_buffer &) = 0; diff --git a/ircd/hash.cc b/ircd/hash.cc index 4d7bb9ef4..e2967a1f2 100644 --- a/ircd/hash.cc +++ b/ircd/hash.cc @@ -27,3 +27,9 @@ ircd::crh::hash::operator()(const mutable_buffer &out, update(in); finalize(out); } + +void +ircd::crh::hash::finalize(const mutable_buffer &b) +{ + digest(b); +}