X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FPeiCrc32GuidedSectionExtractLib%2FPeiCrc32GuidedSectionExtractLib.c;h=fd71239f408d12a7d828cc04f967200e91f7d5fb;hp=34f1e170067c2e52ebd1b3581abeea8fbeee8969;hb=d1102dba7210b95e41d06c2338a22ba6af248645;hpb=ca79bab7af4770c5eb578f6d495af01705aedb79 diff --git a/MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.c b/MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.c index 34f1e17006..fd71239f40 100644 --- a/MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.c +++ b/MdeModulePkg/Library/PeiCrc32GuidedSectionExtractLib/PeiCrc32GuidedSectionExtractLib.c @@ -1,16 +1,16 @@ /** @file - This library registers CRC32 guided section handler + This library registers CRC32 guided section handler to parse CRC32 encapsulation section and extract raw data. -Copyright (c) 2007 - 2017, 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. +Copyright (c) 2007 - 2018, 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. **/ @@ -37,7 +37,7 @@ typedef struct { /** GetInfo gets raw data size and attribute of the input guided section. - It first checks whether the input guid section is supported. + It first checks whether the input guid section is supported. If not, EFI_INVALID_PARAMETER will return. @param InputSection Buffer containing the input GUIDed section to be processed. @@ -45,7 +45,7 @@ typedef struct { @param ScratchBufferSize The size of ScratchBuffer. @param SectionAttribute The attribute of the input guided section. - @retval EFI_SUCCESS The size of destination buffer, the size of scratch buffer and + @retval EFI_SUCCESS The size of destination buffer, the size of scratch buffer and the attribute of the input section are successfully retrieved. @retval EFI_INVALID_PARAMETER The GUID in InputSection does not match this instance guid. @@ -98,7 +98,7 @@ Crc32GuidedSectionGetInfo ( Extraction handler tries to extract raw data from the input guided section. It also does authentication check for 32bit CRC value in the input guided section. - It first checks whether the input guid section is supported. + It first checks whether the input guid section is supported. If not, EFI_INVALID_PARAMETER will return. @param InputSection Buffer containing the input GUIDed section to be processed. @@ -133,7 +133,7 @@ Crc32GuidedSectionHandler ( &(((EFI_GUID_DEFINED_SECTION2 *) InputSection)->SectionDefinitionGuid))) { return EFI_INVALID_PARAMETER; } - + // // Get section Crc32 checksum. // @@ -155,7 +155,7 @@ Crc32GuidedSectionHandler ( &(((EFI_GUID_DEFINED_SECTION *) InputSection)->SectionDefinitionGuid))) { return EFI_INVALID_PARAMETER; } - + // // Get section Crc32 checksum. //