GenCrc32.exe
- Generate a CRC32 signature
GenCrc32 [-v | -q | --debug <Level>] -e|-d -o <OutputFile> <InputFile>GenCrc32 -hGenCrc32 --version
The GenCrc32 tool generates the CRC32 value when encoding the input file, put the calculated CRC32 value into the output file header, and then put the input file into the output file tail. When decoding the input file, GenCrc32 is used to verify the CRC32 value. If the CRC32 value is valid, the input file, except for CRC32 value, will be written to the output file. If the CRC32 value is not valid, the error message will be displayed and the output file will not be created.
If no options are specified, tool prints usage.
-h, --help Show this help message and exit--version Show program's version number and exit--debug [DEBUG] Output DEBUG statements, where DEBUG_LEVEL is 0 (min)- 9 (max)-v, --verbose Print informational statements-q, --quiet Returns the exit code, error messages will bedisplayed-s, --silent Returns only the exit code; informational and errormessages are not displayed-e, --encode Calculate CRC32 value for the input file-d, --decode Verify CRC32 value for the input file-o OUTPUT_FILENAME, --output OUTPUT_FILENAMEOutput file name--sfo Reserved for future use
Return Value | Description |
STATUS_SUCCESS 0 | The action was completed as requested. |
STATUS_ERROR 2 | The action failed. |
Calculate CRC32 value for the input file "file.sec" and write the CRC32
value and input file into the output file file.crc32.
GenCrc32 -e -o file.crc32 file.sec
Verify CRC32 value of the input file file.crc32 and write the input file
(not including CRC32 value) to the output file file.orig
GenCrc32 -d -o file.orig file.crc32
Verify CRC32 value of the input file file.crc32 in the quiet mode and
write the input file (not including CRC32 value) to the output file
file.orig
GenCrc32 -d -q -o file.orig file.crc32
No known bugs.
Report bugs to [email protected]
None
None
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at:
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.