ripemd: panic rather than throw in constexpr

calculating the hash should never need to throw; all error cases should
be detectable at construction time. we should panic if we detect such an
error.

this fixes a compilation warning
This commit is contained in:
Danny Robson 2016-08-01 17:22:19 +10:00
parent 19bf405710
commit 0b85632c97

View File

@ -86,7 +86,7 @@ RIPEMD::update (const void *restrict _data, size_t len) noexcept
}
if (m_length >> sizeof (m_length) * 8 - 3 != 0)
throw std::length_error ("exceeded maximum message length");
panic ("exceeded maximum message length");
}