Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7689012
ewf_crc.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Referenced Files
None
Subscribers
None
ewf_crc.h
View Options
/*
* EWF CRC handling
*
* Copyright (c) 2006-2009, Joachim Metz <forensics@hoffmannbv.nl>,
* Hoffmann Investigations. All rights reserved.
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _EWF_CRC_H )
#define _EWF_CRC_H
#include <common.h>
#include <types.h>
#if defined( HAVE_ZLIB_H ) && defined( HAVE_LIBZ )
#include <zlib.h>
#endif
#if defined( __cplusplus )
extern "C" {
#endif
/* The unsigned crc type defintion
* consists of 4 bytes (32 bits)
*/
typedef uint32_t ewf_crc_t;
#define ewf_crc_calculate( buffer, size, previous_key ) \
(ewf_crc_t) adler32( (uLong) previous_key, (const Bytef *) buffer, (uInt) size );
#if defined( __cplusplus )
}
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Oct 31, 11:14 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1347925
Default Alt Text
ewf_crc.h (1 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment