fix: CRC8 hashing algorithm displaying 16 bits result

This commit is contained in:
WerWolv
2023-01-25 00:06:48 +01:00
parent fc44dd4592
commit 434b7649c3
3 changed files with 3 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ namespace hex::crypt {
return crc.checksum();
}
u16 crc8(prv::Provider *&data, u64 offset, size_t size, u32 polynomial, u32 init, u32 xorOut, bool reflectIn, bool reflectOut) {
u8 crc8(prv::Provider *&data, u64 offset, size_t size, u32 polynomial, u32 init, u32 xorOut, bool reflectIn, bool reflectOut) {
return calcCrc<8>(data, offset, size, polynomial, init, xorOut, reflectIn, reflectOut);
}