VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Volume/Crc32.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Volume/Crc32.h')
-rw-r--r--src/Volume/Crc32.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Volume/Crc32.h b/src/Volume/Crc32.h
index ced20457..4b1ee045 100644
--- a/src/Volume/Crc32.h
+++ b/src/Volume/Crc32.h
@@ -2,11 +2,11 @@
Derived from source code of TrueCrypt 7.1a, which is
Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
by the TrueCrypt License 3.0.
Modifications and additions to the original source code (contained in this file)
- and all other portions of this file are Copyright (c) 2013-2017 IDRIX
+ and all other portions of this file are Copyright (c) 2013-2025 IDRIX
and are governed by the Apache License 2.0 the full text of which is
contained in the file License.txt included in VeraCrypt binary and source
code distribution packages.
*/
@@ -24,18 +24,18 @@ namespace VeraCrypt
Crc32 () : CrcValue (0xffffFFFF) { };
virtual ~Crc32 () { };
uint32 Get () const { return CrcValue ^ 0xffffFFFF; }
- uint32 Process (byte data)
+ uint32 Process (uint8 data)
{
- return CrcValue = crc_32_tab[(byte) (CrcValue ^ data)] ^ (CrcValue >> 8);
+ return CrcValue = crc_32_tab[(uint8) (CrcValue ^ data)] ^ (CrcValue >> 8);
}
static uint32 ProcessBuffer (const ConstBufferPtr &buffer)
{
- return ::GetCrc32 (const_cast<byte *> (buffer.Get()), static_cast<int> (buffer.Size()));
+ return ::GetCrc32 (const_cast<uint8 *> (buffer.Get()), static_cast<int> (buffer.Size()));
}
protected:
uint32 CrcValue;