SHA_CTX SHA;
SHA1_Init(&SHA);
- byte_t xor_buf[KeyLen];
+ byte_t xor_buf[B_len];
ui32_t i = 0;
for ( ; i < KeyLen; i++ )
{
for ( ; i < B_len; i++ )
xor_buf[i] = 0 ^ opad[0];
-
+
SHA1_Update(&m_SHA, xor_buf, B_len);
}
else
{
SHA1_Update(&m_SHA, xor_buf, KeyLen);
}
-
+
SHA1_Update(&SHA, xor_buf, KeyLen);
SHA1_Update(&SHA, m_SHAValue, HMAC_SIZE);
/*
-Copyright (c) 2004-2006, John Hurst
+Copyright (c) 2004-2007, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
/*
-Copyright (c) 2004-2006, John Hurst
+Copyright (c) 2004-2007, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without