summaryrefslogtreecommitdiff
path: root/beecrypt/hmac.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2003-05-01 23:28:46 +0000
committerjbj <devnull@localhost>2003-05-01 23:28:46 +0000
commit366f697b6690d245319eb856985e84625c25236d (patch)
tree585c243dc02aca0ed529266674e73bd1f6fa1c7c /beecrypt/hmac.c
parent0b64f73176d63b71b289b9946e3e77a135e79070 (diff)
downloadlibrpm-tizen-366f697b6690d245319eb856985e84625c25236d.tar.gz
librpm-tizen-366f697b6690d245319eb856985e84625c25236d.tar.bz2
librpm-tizen-366f697b6690d245319eb856985e84625c25236d.zip
Intergate beecrypt spliddles.
CVS patchset: 6802 CVS date: 2003/05/01 23:28:46
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;