svn commit: samba r14425 - in branches/SAMBA_4_0/source/lib/crypto:
.
tridge at samba.org
tridge at samba.org
Wed Mar 15 05:34:05 GMT 2006
Author: tridge
Date: 2006-03-15 05:34:04 +0000 (Wed, 15 Mar 2006)
New Revision: 14425
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14425
Log:
fixed an hmac-md5 error for keys longer than 64 (using deallocated
stack variable)
Modified:
branches/SAMBA_4_0/source/lib/crypto/hmacmd5.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/crypto/hmacmd5.c
===================================================================
--- branches/SAMBA_4_0/source/lib/crypto/hmacmd5.c 2006-03-15 05:31:51 UTC (rev 14424)
+++ branches/SAMBA_4_0/source/lib/crypto/hmacmd5.c 2006-03-15 05:34:04 UTC (rev 14425)
@@ -32,11 +32,11 @@
_PUBLIC_ void hmac_md5_init_rfc2104(const uint8_t *key, int key_len, HMACMD5Context *ctx)
{
int i;
+ uint8_t tk[16];
/* if key is longer than 64 bytes reset it to key=MD5(key) */
if (key_len > 64)
{
- uint8_t tk[16];
struct MD5Context tctx;
MD5Init(&tctx);
More information about the samba-cvs
mailing list