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:
parent
19bf405710
commit
0b85632c97
@ -86,7 +86,7 @@ RIPEMD::update (const void *restrict _data, size_t len) noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_length >> sizeof (m_length) * 8 - 3 != 0)
|
if (m_length >> sizeof (m_length) * 8 - 3 != 0)
|
||||||
throw std::length_error ("exceeded maximum message length");
|
panic ("exceeded maximum message length");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user