summaryrefslogtreecommitdiffstats
path: root/tools/creative.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-04-09 16:29:05 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-04-09 16:29:05 +0000
commit49236bb62bedc07221de0b04005809d63f03f9ee (patch)
tree598db82232180437b82c7dfab13199bbaff35c52 /tools/creative.c
parentab796a2e4981f159fdbc86e8c2d3f5c86cf978a4 (diff)
downloadrockbox-49236bb62bedc07221de0b04005809d63f03f9ee.tar.gz
rockbox-49236bb62bedc07221de0b04005809d63f03f9ee.tar.bz2
rockbox-49236bb62bedc07221de0b04005809d63f03f9ee.zip
Change HMAC-SHA1 implementation to the one taken from gnulib, which
contains a more clear copyright notice. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17054 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/creative.c')
-rw-r--r--tools/creative.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/creative.c b/tools/creative.c
index 5b8f15abc0..b9041ca513 100644
--- a/tools/creative.c
+++ b/tools/creative.c
@@ -68,8 +68,8 @@ static int make_ciff_file(unsigned char *inbuf, int length,
memcpy(&outbuf[0x98+length], "LLUN", 4);
int2le(20, &outbuf[0x98+length+4]);
/* Do checksum */
- hmac_sha((unsigned char *)devices[device].null, strlen(devices[device].null),
- outbuf, 0x98+length, key, 20);
+ hmac_sha1((unsigned char *)devices[device].null, strlen(devices[device].null),
+ outbuf, 0x98+length, key);
memcpy(&outbuf[0x98+length+8], key, 20);
return length+0x90+0x1C+8;
}