Functions | |
EFI_STATUS | ReadFileContent (IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AddtionAllocateSize) |
VOID | CloseFile (IN EFI_FILE_HANDLE FileHandle) |
EFI_STATUS EFIAPI | Int2OctStr (IN CONST UINTN *Integer, IN UINTN IntSizeInWords, OUT UINT8 *OctetString, IN UINTN OSSizeInBytes) |
EFI_STATUS | StringToGuid (IN CHAR16 *Str, IN UINTN StrLen, OUT EFI_GUID *Guid) |
UINTN | GuidToString (IN EFI_GUID *Guid, IN CHAR16 *Buffer, IN UINTN BufferSize) |
Copyright (c) 2015, 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.
VOID CloseFile | ( | IN EFI_FILE_HANDLE | FileHandle | ) |
Close an open file handle.
[in] | FileHandle | The file handle to close. |
Referenced by EnrollImageSignatureToSigDB(), EnrollPlatformKey(), EnrollRsa2048ToKek(), EnrollX509HashtoSigDB(), EnrollX509ToKek(), EnrollX509toSigDB(), and SecureBootCallback().
UINTN GuidToString | ( | IN EFI_GUID * | Guid, | |
IN CHAR16 * | Buffer, | |||
IN UINTN | BufferSize | |||
) |
Worker function that prints an EFI_GUID into specified Buffer.
[in] | Guid | Pointer to GUID to print. |
[in] | Buffer | Buffer to print Guid into. |
[in] | BufferSize | Size of Buffer. |
Number | of characters printed. |
References UINTN().
Referenced by UpdateDeletePage().
EFI_STATUS EFIAPI Int2OctStr | ( | IN CONST UINTN * | Integer, | |
IN UINTN | IntSizeInWords, | |||
OUT UINT8 * | OctetString, | |||
IN UINTN | OSSizeInBytes | |||
) |
Convert a nonnegative integer to an octet string of a specified length.
[in] | Integer | Pointer to the nonnegative integer to be converted |
[in] | IntSizeInWords | Length of integer buffer in words |
[out] | OctetString | Converted octet string of the specified length |
[in] | OSSizeInBytes | Intended length of resulting octet string in bytes |
EFI_SUCCESS | Data conversion successfully | |
EFI_BUFFER_TOOL_SMALL | Buffer is too small for output string |
Referenced by EnrollRsa2048ToKek().
EFI_STATUS ReadFileContent | ( | IN EFI_FILE_HANDLE | FileHandle, | |
IN OUT VOID ** | BufferPtr, | |||
OUT UINTN * | FileSize, | |||
IN UINTN | AddtionAllocateSize | |||
) |
Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AddtionAllocateSize.
[in] | FileHandle | The file to be read. |
[in,out] | BufferPtr | Pointers to the pointer of allocated buffer. |
[out] | FileSize | Size of input file |
[in] | AddtionAllocateSize | Addtion size the buffer need to be allocated. In case the buffer need to contain others besides the file content. |
EFI_SUCCESS | The file was read into the buffer. | |
EFI_INVALID_PARAMETER | A parameter was invalid. | |
EFI_OUT_OF_RESOURCES | A memory allocation failed. | |
others | Unexpected error. |
References EFI_STATUS(), and UINTN().
Referenced by CreatePkX509SignatureList(), EnrollImageSignatureToSigDB(), EnrollRsa2048ToKek(), EnrollX509HashtoSigDB(), EnrollX509ToKek(), EnrollX509toSigDB(), and IsX509CertInDbx().
EFI_STATUS StringToGuid | ( | IN CHAR16 * | Str, | |
IN UINTN | StrLen, | |||
OUT EFI_GUID * | Guid | |||
) |
Convert a String to Guid Value.
[in] | Str | Specifies the String to be converted. |
[in] | StrLen | Number of Unicode Characters of String (exclusive ) |
[out] | Guid | Return the result Guid value. |
EFI_SUCCESS | The operation is finished successfully. | |
EFI_NOT_FOUND | Invalid string. |
References UINTN().
Referenced by SecureBootCallback().