diff options
Diffstat (limited to 'src/mac/hmac/hmac.cpp')
-rw-r--r-- | src/mac/hmac/hmac.cpp | 4 |
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); } } |