aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/poly1305/poly1305.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/mac/poly1305/poly1305.cpp')
-rw-r--r--src/lib/mac/poly1305/poly1305.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/mac/poly1305/poly1305.cpp b/src/lib/mac/poly1305/poly1305.cpp
index 9fe0bad0a..639aa88c0 100644
--- a/src/lib/mac/poly1305/poly1305.cpp
+++ b/src/lib/mac/poly1305/poly1305.cpp
@@ -155,7 +155,7 @@ void Poly1305::key_schedule(const uint8_t key[], size_t)
void Poly1305::add_data(const uint8_t input[], size_t length)
{
- BOTAN_ASSERT_EQUAL(m_poly.size(), 8, "Initialized");
+ verify_key_set(m_poly.size() == 8);
if(m_buf_pos)
{
@@ -182,7 +182,7 @@ void Poly1305::add_data(const uint8_t input[], size_t length)
void Poly1305::final_result(uint8_t out[])
{
- BOTAN_ASSERT_EQUAL(m_poly.size(), 8, "Initialized");
+ verify_key_set(m_poly.size() == 8);
if(m_buf_pos != 0)
{