summaryrefslogtreecommitdiff
path: root/src/AS_DCP_AES.cpp
diff options
context:
space:
mode:
authormsheby <msheby@cinecert.com>2007-10-25 19:03:38 +0000
committermsheby <>2007-10-25 19:03:38 +0000
commit57ddb7894042229bbc5f14e9257068afcc6f8725 (patch)
treeb110a228fd85d7cc593a09ca17d2501a1319201c /src/AS_DCP_AES.cpp
parent1fda6a7db526cc05f122ff602be128051c83ebdd (diff)
Update copyright date.
Diffstat (limited to 'src/AS_DCP_AES.cpp')
-rwxr-xr-xsrc/AS_DCP_AES.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AS_DCP_AES.cpp b/src/AS_DCP_AES.cpp
index 84229d5..cd3e41b 100755
--- a/src/AS_DCP_AES.cpp
+++ b/src/AS_DCP_AES.cpp
@@ -338,7 +338,7 @@ public:
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++ )
@@ -348,14 +348,14 @@ public:
{
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);