TianoCore EDK2 master
Loading...
Searching...
No Matches
TlsLib.h
Go to the documentation of this file.
1
9#ifndef __TLS_LIB_H__
10#define __TLS_LIB_H__
11
23BOOLEAN
24EFIAPI
26 VOID
27 );
28
35VOID
36EFIAPI
38 IN VOID *TlsCtx
39 );
40
52VOID *
53EFIAPI
55 IN UINT8 MajorVer,
56 IN UINT8 MinorVer
57 );
58
68VOID
69EFIAPI
70TlsFree (
71 IN VOID *Tls
72 );
73
87VOID *
88EFIAPI
89TlsNew (
90 IN VOID *TlsCtx
91 );
92
104BOOLEAN
105EFIAPI
107 IN VOID *Tls
108 );
109
137EFIAPI
139 IN VOID *Tls,
140 IN UINT8 *BufferIn OPTIONAL,
141 IN UINTN BufferInSize OPTIONAL,
142 OUT UINT8 *BufferOut OPTIONAL,
143 IN OUT UINTN *BufferOutSize
144 );
145
172EFIAPI
174 IN VOID *Tls,
175 IN UINT8 *BufferIn OPTIONAL,
176 IN UINTN BufferInSize OPTIONAL,
177 OUT UINT8 *BufferOut OPTIONAL,
178 IN OUT UINTN *BufferOutSize
179 );
180
200EFIAPI
202 IN VOID *Tls,
203 IN OUT UINT8 *Buffer,
204 IN OUT UINTN *BufferSize
205 );
206
221INTN
222EFIAPI
224 IN VOID *Tls,
225 IN OUT VOID *Buffer,
226 IN UINTN BufferSize
227 );
228
243INTN
244EFIAPI
246 IN VOID *Tls,
247 IN VOID *Buffer,
248 IN UINTN BufferSize
249 );
250
266INTN
267EFIAPI
268TlsRead (
269 IN VOID *Tls,
270 IN OUT VOID *Buffer,
271 IN UINTN BufferSize
272 );
273
289INTN
290EFIAPI
291TlsWrite (
292 IN VOID *Tls,
293 IN VOID *Buffer,
294 IN UINTN BufferSize
295 );
296
311EFIAPI
313 IN VOID *Tls
314 );
315
331EFIAPI
333 IN VOID *Tls,
334 IN UINT8 MajorVer,
335 IN UINT8 MinorVer
336 );
337
352EFIAPI
354 IN VOID *Tls,
355 IN BOOLEAN IsServer
356 );
357
377EFIAPI
379 IN VOID *Tls,
380 IN UINT16 *CipherId,
381 IN UINTN CipherNum
382 );
383
397EFIAPI
399 IN UINT8 CompMethod
400 );
401
411VOID
412EFIAPI
414 IN VOID *Tls,
415 IN UINT32 VerifyMode
416 );
417
431EFIAPI
433 IN VOID *Tls,
434 IN UINT32 Flags,
435 IN CHAR8 *HostName
436 );
437
454EFIAPI
456 IN VOID *Tls,
457 IN UINT8 *SessionId,
458 IN UINT16 SessionIdLen
459 );
460
479EFIAPI
481 IN VOID *Tls,
482 IN VOID *Data,
483 IN UINTN DataSize
484 );
485
504EFIAPI
506 IN VOID *Tls,
507 IN VOID *Data,
508 IN UINTN DataSize
509 );
510
530EFIAPI
532 IN VOID *Tls,
533 IN VOID *Data,
534 IN UINTN DataSize,
535 IN VOID *Password OPTIONAL
536 );
537
555EFIAPI
557 IN VOID *Tls,
558 IN VOID *Data,
559 IN UINTN DataSize
560 );
561
577EFIAPI
579 IN VOID *Data,
580 IN UINTN DataSize
581 );
582
601EFIAPI
603 IN VOID *Tls,
604 IN UINT8 *Data,
605 IN UINTN DataSize
606 );
607
623EFIAPI
625 IN VOID *Tls,
626 IN UINT8 *Data,
627 IN UINTN DataSize
628 );
629
643UINT16
644EFIAPI
646 IN VOID *Tls
647 );
648
662UINT8
663EFIAPI
665 IN VOID *Tls
666 );
667
683EFIAPI
685 IN VOID *Tls,
686 IN OUT UINT16 *CipherId
687 );
688
706EFIAPI
708 IN VOID *Tls,
709 IN OUT UINT8 *CompressionId
710 );
711
725UINT32
726EFIAPI
728 IN VOID *Tls
729 );
730
747EFIAPI
749 IN VOID *Tls,
750 IN OUT UINT8 *SessionId,
751 IN OUT UINT16 *SessionIdLen
752 );
753
765VOID
766EFIAPI
768 IN VOID *Tls,
769 IN OUT UINT8 *ClientRandom
770 );
771
783VOID
784EFIAPI
786 IN VOID *Tls,
787 IN OUT UINT8 *ServerRandom
788 );
789
805EFIAPI
807 IN VOID *Tls,
808 IN OUT UINT8 *KeyMaterial
809 );
810
828EFIAPI
830 IN VOID *Tls,
831 OUT VOID *Data,
832 IN OUT UINTN *DataSize
833 );
834
853EFIAPI
855 IN VOID *Tls,
856 OUT VOID *Data,
857 IN OUT UINTN *DataSize
858 );
859
877EFIAPI
879 IN VOID *Tls,
880 OUT VOID *Data,
881 IN OUT UINTN *DataSize
882 );
883
900EFIAPI
902 OUT VOID *Data,
903 IN OUT UINTN *DataSize
904 );
905
925EFIAPI
927 IN VOID *Tls,
928 IN CONST VOID *Label,
929 IN CONST VOID *Context,
930 IN UINTN ContextLen,
931 OUT VOID *KeyBuffer,
932 IN UINTN KeyBufferLen
933 );
934
935#endif // __TLS_LIB_H__
UINT64 UINTN
INT64 INTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
VOID EFIAPI TlsGetServerRandom(IN VOID *Tls, IN OUT UINT8 *ServerRandom)
Definition: CryptLib.c:4560
EFI_STATUS EFIAPI TlsGetHostPublicCert(IN VOID *Tls, OUT VOID *Data, IN OUT UINTN *DataSize)
Definition: CryptLib.c:4638
EFI_STATUS EFIAPI TlsDoHandshake(IN VOID *Tls, IN UINT8 *BufferIn OPTIONAL, IN UINTN BufferInSize OPTIONAL, OUT UINT8 *BufferOut OPTIONAL, IN OUT UINTN *BufferOutSize)
Definition: CryptLib.c:3826
EFI_STATUS EFIAPI TlsSetVerifyHost(IN VOID *Tls, IN UINT32 Flags, IN CHAR8 *HostName)
Definition: CryptLib.c:4159
INTN EFIAPI TlsCtrlTrafficIn(IN VOID *Tls, IN VOID *Buffer, IN UINTN BufferSize)
Definition: CryptLib.c:3945
EFI_STATUS EFIAPI TlsGetKeyMaterial(IN VOID *Tls, IN OUT UINT8 *KeyMaterial)
Definition: CryptLib.c:4584
UINT32 EFIAPI TlsGetVerify(IN VOID *Tls)
Definition: CryptLib.c:4493
EFI_STATUS EFIAPI TlsGetCurrentCipher(IN VOID *Tls, IN OUT UINT16 *CipherId)
Definition: CryptLib.c:4444
EFI_STATUS EFIAPI TlsSetCertRevocationList(IN VOID *Data, IN UINTN DataSize)
Definition: CryptLib.c:4323
VOID *EFIAPI TlsCtxNew(IN UINT8 MajorVer, IN UINT8 MinorVer)
Definition: CryptLib.c:3730
EFI_STATUS EFIAPI TlsGetCertRevocationList(OUT VOID *Data, IN OUT UINTN *DataSize)
Definition: CryptLib.c:4691
INTN EFIAPI TlsCtrlTrafficOut(IN VOID *Tls, IN OUT VOID *Buffer, IN UINTN BufferSize)
Definition: CryptLib.c:3920
EFI_STATUS EFIAPI TlsSetCompressionMethod(IN UINT8 CompMethod)
Definition: CryptLib.c:4119
VOID EFIAPI TlsFree(IN VOID *Tls)
Definition: CryptLib.c:3749
EFI_STATUS EFIAPI TlsSetCaCertificate(IN VOID *Tls, IN VOID *Data, IN UINTN DataSize)
Definition: CryptLib.c:4213
EFI_STATUS EFIAPI TlsSetCipherList(IN VOID *Tls, IN UINT16 *CipherId, IN UINTN CipherNum)
Definition: CryptLib.c:4096
VOID *EFIAPI TlsNew(IN VOID *TlsCtx)
Definition: CryptLib.c:3771
EFI_STATUS EFIAPI TlsGetCurrentCompressionId(IN VOID *Tls, IN OUT UINT8 *CompressionId)
Definition: CryptLib.c:4470
EFI_STATUS EFIAPI TlsSetConnectionEnd(IN VOID *Tls, IN BOOLEAN IsServer)
Definition: CryptLib.c:4068
EFI_STATUS EFIAPI TlsSetSessionId(IN VOID *Tls, IN UINT8 *SessionId, IN UINT16 SessionIdLen)
Definition: CryptLib.c:4185
EFI_STATUS EFIAPI TlsSetHostPrivateKey(IN VOID *Tls, IN VOID *Data, IN UINTN DataSize)
Definition: CryptLib.c:4298
EFI_STATUS EFIAPI TlsSetHostPublicCert(IN VOID *Tls, IN VOID *Data, IN UINTN DataSize)
Definition: CryptLib.c:4241
UINT8 EFIAPI TlsGetConnectionEnd(IN VOID *Tls)
Definition: CryptLib.c:4421
VOID EFIAPI TlsSetVerify(IN VOID *Tls, IN UINT32 VerifyMode)
Definition: CryptLib.c:4137
VOID EFIAPI TlsCtxFree(IN VOID *TlsCtx)
Definition: CryptLib.c:3710
VOID EFIAPI TlsGetClientRandom(IN VOID *Tls, IN OUT UINT8 *ClientRandom)
Definition: CryptLib.c:4539
INTN EFIAPI TlsRead(IN VOID *Tls, IN OUT VOID *Buffer, IN UINTN BufferSize)
Definition: CryptLib.c:3971
EFI_STATUS EFIAPI TlsShutdown(IN VOID *Tls)
Definition: CryptLib.c:4021
BOOLEAN EFIAPI TlsInHandshake(IN VOID *Tls)
Definition: CryptLib.c:3791
EFI_STATUS EFIAPI TlsSetVersion(IN VOID *Tls, IN UINT8 MajorVer, IN UINT8 MinorVer)
Definition: CryptLib.c:4044
EFI_STATUS EFIAPI TlsSetHostPrivateKeyEx(IN VOID *Tls, IN VOID *Data, IN UINTN DataSize, IN VOID *Password OPTIONAL)
Definition: CryptLib.c:4270
EFI_STATUS EFIAPI TlsHandleAlert(IN VOID *Tls, IN UINT8 *BufferIn OPTIONAL, IN UINTN BufferInSize OPTIONAL, OUT UINT8 *BufferOut OPTIONAL, IN OUT UINTN *BufferOutSize)
Definition: CryptLib.c:3864
EFI_STATUS EFIAPI TlsCloseNotify(IN VOID *Tls, IN OUT UINT8 *Buffer, IN OUT UINTN *BufferSize)
Definition: CryptLib.c:3895
BOOLEAN EFIAPI TlsInitialize(VOID)
Definition: CryptLib.c:3695
EFI_STATUS EFIAPI TlsGetSessionId(IN VOID *Tls, IN OUT UINT8 *SessionId, IN OUT UINT16 *SessionIdLen)
Definition: CryptLib.c:4517
UINT16 EFIAPI TlsGetVersion(IN VOID *Tls)
Definition: CryptLib.c:4399
EFI_STATUS EFIAPI TlsSetEcCurve(IN VOID *Tls, IN UINT8 *Data, IN UINTN DataSize)
Definition: CryptLib.c:4375
EFI_STATUS EFIAPI TlsGetExportKey(IN VOID *Tls, IN CONST VOID *Label, IN CONST VOID *Context, IN UINTN ContextLen, OUT VOID *KeyBuffer, IN UINTN KeyBufferLen)
Definition: CryptLib.c:4719
INTN EFIAPI TlsWrite(IN VOID *Tls, IN VOID *Buffer, IN UINTN BufferSize)
Definition: CryptLib.c:3997
EFI_STATUS EFIAPI TlsGetCaCertificate(IN VOID *Tls, OUT VOID *Data, IN OUT UINTN *DataSize)
Definition: CryptLib.c:4610
EFI_STATUS EFIAPI TlsGetHostPrivateKey(IN VOID *Tls, OUT VOID *Data, IN OUT UINTN *DataSize)
Definition: CryptLib.c:4665
EFI_STATUS EFIAPI TlsSetSignatureAlgoList(IN VOID *Tls, IN UINT8 *Data, IN UINTN DataSize)
Definition: CryptLib.c:4350
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29