summaryrefslogtreecommitdiff
path: root/beecrypt/hmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'beecrypt/hmac.c')
-rw-r--r--beecrypt/hmac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/beecrypt/hmac.c b/beecrypt/hmac.c
index 8512a3791..b374643a8 100644
--- a/beecrypt/hmac.c
+++ b/beecrypt/hmac.c
@@ -61,12 +61,16 @@ int hmacSetup(byte* kxi, byte* kxo, const hashFunction* hash, hashFunctionParam*
if (hash->digest(param, kxi))
return -1;
+/*@-mayaliasunique@*/
memcpy(kxo, kxi, keybytes = hash->digestsize);
+/*@=mayaliasunique@*/
}
else if (keybytes > 0)
{
+/*@-mayaliasunique@*/
memcpy(kxi, key, keybytes);
memcpy(kxo, key, keybytes);
+/*@=mayaliasunique@*/
}
else
return -1;