File indexing completed on 2025-03-23 04:28:08
0001 /* 0002 0003 SPDX-FileCopyrightText: 2003-2009 Sebastian Trueg <trueg@k3b.org> 0004 SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef _K3B_CRC_H_ 0010 #define _K3B_CRC_H_ 0011 0012 #include <qglobal.h> 0013 0014 namespace K3b { 0015 namespace Device 0016 { 0017 // static Crc* x25(); 0018 0019 // bool check( unsigned char* message, unsigned int len, unsigned char* crc, unsigned int crcLen ); 0020 0021 quint16 calcX25( unsigned char* message, unsigned int len, quint16 start = 0x0000 ); 0022 0023 /** 0024 * subdata is 12 bytes in long. 0025 */ 0026 bool checkQCrc( unsigned char* subdata ); 0027 } 0028 } 0029 0030 #endif