diff --git a/crypto/ice.cpp b/crypto/ice.cpp index 65cb8db7..39bf0659 100644 --- a/crypto/ice.cpp +++ b/crypto/ice.cpp @@ -392,11 +392,11 @@ ice::scheduleBuild (std::array &kb, void ice::set (const uint64_t *_key_first, const uint64_t *_key_last) { + CHECK_EQ ((unsigned)(_key_last - _key_first), m_size); + auto key = reinterpret_cast (_key_first); if (m_rounds == 8) { - CHECK_EQ (_key_last - _key_first, 8 * 2 + 1); - std::array kb; for (unsigned i = 0; i < 4; i++) @@ -407,8 +407,6 @@ ice::set (const uint64_t *_key_first, const uint64_t *_key_last) } for (unsigned i = 0; i < m_size; i++) { - CHECK_EQ ((unsigned)(_key_last - _key_first), m_size * 8u + 4u * 2u + 1u); - std::array kb; for (unsigned j = 0; j < 4; j++)