TianoCore EDK2 master
|
#include "TlsImpl.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | TlsEncryptPacket (IN TLS_INSTANCE *TlsInstance, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount) |
EFI_STATUS | TlsDecryptPacket (IN TLS_INSTANCE *TlsInstance, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount) |
The Miscellaneous Routines for TlsDxe driver.
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TlsImpl.c.
EFI_STATUS TlsDecryptPacket | ( | IN TLS_INSTANCE * | TlsInstance, |
IN OUT EFI_TLS_FRAGMENT_DATA ** | FragmentTable, | ||
IN UINT32 * | FragmentCount | ||
) |
Decrypt the message listed in fragment.
[in] | TlsInstance | The pointer to the TLS instance. |
[in,out] | FragmentTable | Pointer to a list of fragment. On input these fragments contain the TLS header and cipher text TLS payload; On output these fragments contain the TLS header and plain text TLS payload. |
[in] | FragmentCount | Number of fragment. |
EFI_SUCCESS | The operation completed successfully. |
EFI_OUT_OF_RESOURCES | Can't allocate memory resources. |
EFI_ABORTED | TLS session state is incorrect. |
Others | Other errors as indicated. |
EFI_STATUS TlsEncryptPacket | ( | IN TLS_INSTANCE * | TlsInstance, |
IN OUT EFI_TLS_FRAGMENT_DATA ** | FragmentTable, | ||
IN UINT32 * | FragmentCount | ||
) |
Encrypt the message listed in fragment.
[in] | TlsInstance | The pointer to the TLS instance. |
[in,out] | FragmentTable | Pointer to a list of fragment. On input these fragments contain the TLS header and plain text TLS payload; On output these fragments contain the TLS header and cipher text TLS payload. |
[in] | FragmentCount | Number of fragment. |
EFI_SUCCESS | The operation completed successfully. |
EFI_OUT_OF_RESOURCES | Can't allocate memory resources. |
EFI_ABORTED | TLS session state is incorrect. |
Others | Other errors as indicated. |