summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/AS_DCP_AES.cpp6
-rwxr-xr-xsrc/KM_fileio.h2
-rwxr-xr-xsrc/h__Writer.cpp2
3 files changed, 5 insertions, 5 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);
diff --git a/src/KM_fileio.h b/src/KM_fileio.h
index ce41672..58a2709 100755
--- a/src/KM_fileio.h
+++ b/src/KM_fileio.h
@@ -1,5 +1,5 @@
/*
-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
diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp
index 06d81c0..4e5bafe 100755
--- a/src/h__Writer.cpp
+++ b/src/h__Writer.cpp
@@ -1,5 +1,5 @@
/*
-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