Helper functions for SecureBoot configuration module.\r
\r
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
\r
/**\r
Read file content into BufferPtr, the size of the allocate buffer\r
- is *FileSize plus AddtionAllocateSize.\r
+ is *FileSize plus AdditionAllocateSize.\r
\r
@param[in] FileHandle The file to be read.\r
@param[in, out] BufferPtr Pointers to the pointer of allocated buffer.\r
@param[out] FileSize Size of input file\r
- @param[in] AddtionAllocateSize Addtion size the buffer need to be allocated.\r
+ @param[in] AdditionAllocateSize Addition size the buffer need to be allocated.\r
In case the buffer need to contain others besides the file content.\r
\r
@retval EFI_SUCCESS The file was read into the buffer.\r
IN EFI_FILE_HANDLE FileHandle,\r
IN OUT VOID **BufferPtr,\r
OUT UINTN *FileSize,\r
- IN UINTN AddtionAllocateSize\r
+ IN UINTN AdditionAllocateSize\r
)\r
\r
{\r
goto ON_EXIT;\r
}\r
\r
- BufferSize = (UINTN) SourceFileSize + AddtionAllocateSize;\r
+ BufferSize = (UINTN) SourceFileSize + AdditionAllocateSize;\r
Buffer = AllocateZeroPool(BufferSize);\r
if (Buffer == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r