From 49236bb62bedc07221de0b04005809d63f03f9ee Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Wed, 9 Apr 2008 16:29:05 +0000 Subject: 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 --- tools/creative.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/creative.c') diff --git a/tools/creative.c b/tools/creative.c index 5b8f15a..b9041ca 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; } -- cgit v1.1