aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/hmac/hmac.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-17 05:03:06 +0000
committerlloyd <[email protected]>2009-11-17 05:03:06 +0000
commit0d27bc0f8763cb6dd6307dbab7713058dee18b2c (patch)
tree5cb428e1c4475ca24f1e4a84dfdc07c7a9e91393 /src/mac/hmac/hmac.cpp
parent0753d6e2c478430d8cd1a0df8d21f68a05260300 (diff)
Rename/remove some secmem member variables for better matching with STL
containers (specifically vector). Rename is_empty to empty Remove has_items Rename create to resize
Diffstat (limited to 'src/mac/hmac/hmac.cpp')
-rw-r--r--src/mac/hmac/hmac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mac/hmac/hmac.cpp b/src/mac/hmac/hmac.cpp
index 99be479fa..dcd6bce5d 100644
--- a/src/mac/hmac/hmac.cpp
+++ b/src/mac/hmac/hmac.cpp
@@ -92,8 +92,8 @@ HMAC::HMAC(HashFunction* hash_in) :
if(hash->HASH_BLOCK_SIZE == 0)
throw Invalid_Argument("HMAC cannot be used with " + hash->name());
- i_key.create(hash->HASH_BLOCK_SIZE);
- o_key.create(hash->HASH_BLOCK_SIZE);
+ i_key.resize(hash->HASH_BLOCK_SIZE);
+ o_key.resize(hash->HASH_BLOCK_SIZE);
}
}