Name
GenCrc32.exe 
Synopsis
GenCrc32 [-v | -q | --debug <Level>] –e|-d -o <OutputFile> <InputFile>
GenCrc32 –h
GenCrc32 --version
Description
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.
Options
If no options are specified, tool prints usage.
-e  Calculate CRC32 value for the input file.
-d  Verify CRC32 value for the input file.
-o, --output Filename
      File will be created to store the output content.
--version
        Print version and copyright of this program and exit
-v, --verbose
      Turn on verbose output with informational messages printed. This is a count value, so specifying –v can be used to increase the verbosity level.
-q, --quiet
	 Disable all messages except FATAL ERRORS
--debug [0-9]
	 Enable debug messages. Only 0-9 Level is supported.
-h, --help
	 Print copyright, version and usage of this program and exit
Status codes returned
STATUS_SUCCESS 	0	The action was completed as requested.	
STATUS_ERROR 		2	The action failed.	
Example
1. 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
2. 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
3. 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
Bugs
No known bugs.
Report bugs to edk2-devel@lists.01.org
Files
None
See also
None
License
Copyright (c) 2006 - 2011, 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.