TianoCore EDK2 master
Loading...
Searching...
No Matches
TlsImpl.h
Go to the documentation of this file.
1
10#ifndef __EFI_TLS_IMPL_H__
11#define __EFI_TLS_IMPL_H__
12
13//
14// Libraries
15//
19#include <Library/BaseLib.h>
20#include <Library/UefiLib.h>
21#include <Library/DebugLib.h>
22#include <Library/NetLib.h>
24#include <Library/TlsLib.h>
25
26//
27// Consumed Protocols
28//
29#include <Protocol/Tls.h>
30#include <Protocol/TlsConfig.h>
31
33
34#include "TlsDriver.h"
35
36//
37// Protocol instances
38//
39extern EFI_SERVICE_BINDING_PROTOCOL mTlsServiceBinding;
40extern EFI_TLS_PROTOCOL mTlsProtocol;
41extern EFI_TLS_CONFIGURATION_PROTOCOL mTlsConfigurationProtocol;
42
61 IN TLS_INSTANCE *TlsInstance,
62 IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable,
63 IN UINT32 *FragmentCount
64 );
65
84 IN TLS_INSTANCE *TlsInstance,
85 IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable,
86 IN UINT32 *FragmentCount
87 );
88
115EFIAPI
117 IN EFI_TLS_PROTOCOL *This,
119 IN VOID *Data,
120 IN UINTN DataSize
121 );
122
147EFIAPI
149 IN EFI_TLS_PROTOCOL *This,
151 IN OUT VOID *Data OPTIONAL,
152 IN OUT UINTN *DataSize
153 );
154
194EFIAPI
196 IN EFI_TLS_PROTOCOL *This,
197 IN UINT8 *RequestBuffer OPTIONAL,
198 IN UINTN RequestSize OPTIONAL,
199 OUT UINT8 *Buffer OPTIONAL,
200 IN OUT UINTN *BufferSize
201 );
202
238EFIAPI
240 IN EFI_TLS_PROTOCOL *This,
241 IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable,
242 IN UINT32 *FragmentCount,
243 IN EFI_TLS_CRYPT_MODE CryptMode
244 );
245
266EFIAPI
270 IN VOID *Data,
271 IN UINTN DataSize
272 );
273
297EFIAPI
301 IN OUT VOID *Data OPTIONAL,
302 IN OUT UINTN *DataSize
303 );
304
305#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_TLS_SESSION_DATA_TYPE
Definition: Tls.h:43
EFI_TLS_CRYPT_MODE
Definition: Tls.h:327
EFI_TLS_CONFIG_DATA_TYPE
Definition: TlsConfig.h:29
EFI_STATUS EFIAPI TlsConfigurationGetData(IN EFI_TLS_CONFIGURATION_PROTOCOL *This, IN EFI_TLS_CONFIG_DATA_TYPE DataType, IN OUT VOID *Data OPTIONAL, IN OUT UINTN *DataSize)
EFI_STATUS EFIAPI TlsBuildResponsePacket(IN EFI_TLS_PROTOCOL *This, IN UINT8 *RequestBuffer OPTIONAL, IN UINTN RequestSize OPTIONAL, OUT UINT8 *Buffer OPTIONAL, IN OUT UINTN *BufferSize)
Definition: TlsProtocol.c:458
EFI_STATUS EFIAPI TlsConfigurationSetData(IN EFI_TLS_CONFIGURATION_PROTOCOL *This, IN EFI_TLS_CONFIG_DATA_TYPE DataType, IN VOID *Data, IN UINTN DataSize)
EFI_STATUS EFIAPI TlsSetSessionData(IN EFI_TLS_PROTOCOL *This, IN EFI_TLS_SESSION_DATA_TYPE DataType, IN VOID *Data, IN UINTN DataSize)
Definition: TlsProtocol.c:47
EFI_STATUS EFIAPI TlsProcessPacket(IN EFI_TLS_PROTOCOL *This, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount, IN EFI_TLS_CRYPT_MODE CryptMode)
Definition: TlsProtocol.c:643
EFI_STATUS TlsDecryptPacket(IN TLS_INSTANCE *TlsInstance, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount)
Definition: TlsImpl.c:195
EFI_STATUS EFIAPI TlsGetSessionData(IN EFI_TLS_PROTOCOL *This, IN EFI_TLS_SESSION_DATA_TYPE DataType, IN OUT VOID *Data OPTIONAL, IN OUT UINTN *DataSize)
Definition: TlsProtocol.c:261
EFI_STATUS TlsEncryptPacket(IN TLS_INSTANCE *TlsInstance, IN OUT EFI_TLS_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount)
Definition: TlsImpl.c:29
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29