aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/modes/aead/gcm/ghash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/modes/aead/gcm/ghash.cpp b/src/lib/modes/aead/gcm/ghash.cpp
index 482eec335..4b0a4c5ec 100644
--- a/src/lib/modes/aead/gcm/ghash.cpp
+++ b/src/lib/modes/aead/gcm/ghash.cpp
@@ -206,7 +206,7 @@ void GHASH::update_associated_data(const uint8_t ad[], size_t length)
void GHASH::update(const uint8_t input[], size_t length)
{
- BOTAN_ASSERT(m_ghash.size() == GCM_BS, "Key was set");
+ verify_key_set(m_ghash.size() == GCM_BS);
m_text_len += length;
ghash_update(m_ghash, input, length);
}