aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak_hmac_copy.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-07-30 18:06:26 +0200
committerMattias Andrée <maandree@kth.se>2021-07-30 18:06:26 +0200
commita198f806d60b641406955d6b8c494b2bd5d8989c (patch)
tree27883711145184fff8d9dc564d368383b1c675db /libkeccak_hmac_copy.c
parentFix warning (diff)
downloadlibkeccak-a198f806d60b641406955d6b8c494b2bd5d8989c.tar.gz
libkeccak-a198f806d60b641406955d6b8c494b2bd5d8989c.tar.bz2
libkeccak-a198f806d60b641406955d6b8c494b2bd5d8989c.tar.xz
Do not divide by sizeof(char)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libkeccak_hmac_copy.c')
-rw-r--r--libkeccak_hmac_copy.c2
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);