diff options
Diffstat (limited to 'libkeccak_hmac_copy.c')
-rw-r--r-- | libkeccak_hmac_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkeccak_hmac_copy.c b/libkeccak_hmac_copy.c index 9c52328..6c61553 100644 --- a/libkeccak_hmac_copy.c +++ b/libkeccak_hmac_copy.c @@ -29,7 +29,7 @@ libkeccak_hmac_copy(struct libkeccak_hmac_state *restrict dest, const struct lib libkeccak_state_destroy(&dest->sponge); return -1; } - dest->key_ipad = dest->key_opad + size / sizeof(char); + dest->key_ipad = dest->key_opad + size; memcpy(dest->key_opad, src->key_opad, size); memcpy(dest->key_ipad, src->key_ipad, size); |