TianoCore EDK2 master
Loading...
Searching...
No Matches
TlsImpl.c File Reference
#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)
 

Detailed Description

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.

Function Documentation

◆ TlsDecryptPacket()

EFI_STATUS TlsDecryptPacket ( IN TLS_INSTANCE TlsInstance,
IN OUT EFI_TLS_FRAGMENT_DATA **  FragmentTable,
IN UINT32 *  FragmentCount 
)

Decrypt the message listed in fragment.

Parameters
[in]TlsInstanceThe pointer to the TLS instance.
[in,out]FragmentTablePointer 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]FragmentCountNumber of fragment.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_OUT_OF_RESOURCESCan't allocate memory resources.
EFI_ABORTEDTLS session state is incorrect.
OthersOther errors as indicated.

Definition at line 195 of file TlsImpl.c.

◆ TlsEncryptPacket()

EFI_STATUS TlsEncryptPacket ( IN TLS_INSTANCE TlsInstance,
IN OUT EFI_TLS_FRAGMENT_DATA **  FragmentTable,
IN UINT32 *  FragmentCount 
)

Encrypt the message listed in fragment.

Parameters
[in]TlsInstanceThe pointer to the TLS instance.
[in,out]FragmentTablePointer 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]FragmentCountNumber of fragment.
Return values
EFI_SUCCESSThe operation completed successfully.
EFI_OUT_OF_RESOURCESCan't allocate memory resources.
EFI_ABORTEDTLS session state is incorrect.
OthersOther errors as indicated.

Definition at line 29 of file TlsImpl.c.