aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-07-25 13:57:13 -0400
committerJack Lloyd <[email protected]>2018-07-25 13:57:13 -0400
commit47f5cd1aa0f1831b3cc307951a7df8d27d4fb58f (patch)
tree5ecf815c309263e9216b433d2d0772bb2308e211
parentc5b1e4f295bbc25196897a5cae6a6aa4ef4545dc (diff)
GHASH - use explicit function to check for key being set
-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);
}