Home | History | Annotate | Download | only in TlsDxe

Lines Matching refs:Instance

31   @param[in]  This                Pointer to the EFI_TLS_PROTOCOL instance.
60 TLS_INSTANCE *Instance;
75 Instance = TLS_INSTANCE_FROM_PROTOCOL (This);
77 if (DataType != EfiTlsSessionState && Instance->TlsSessionState != EfiTlsSessionNotStarted){
92 Status = TlsSetVersion (Instance->TlsConn, ((EFI_TLS_VERSION *) Data)->Major, ((EFI_TLS_VERSION *) Data)->Minor);
100 Status = TlsSetConnectionEnd (Instance->TlsConn, *((EFI_TLS_CONNECTION_END *) Data));
113 Status = TlsSetCipherList (Instance->TlsConn, CipherId, DataSize / sizeof (EFI_TLS_CIPHER));
145 TlsSetVerify (Instance->TlsConn, *((UINT32 *) Data));
154 Instance->TlsConn,
165 Instance->TlsSessionState = *(EFI_TLS_SESSION_STATE *) Data;
196 @param[in] This Pointer to the EFI_TLS_PROTOCOL instance.
224 TLS_INSTANCE *Instance;
236 Instance = TLS_INSTANCE_FROM_PROTOCOL (This);
238 if (Instance->TlsSessionState == EfiTlsSessionNotStarted &&
253 *((UINT16 *) Data) = HTONS (TlsGetVersion (Instance->TlsConn));
262 *((UINT8 *) Data) = TlsGetConnectionEnd (Instance->TlsConn);
274 Status = TlsGetCurrentCipher (Instance->TlsConn, (UINT16 *) Data);
287 Status = TlsGetCurrentCompressionId (Instance->TlsConn, (UINT8 *) Data);
299 *((UINT32 *) Data) = TlsGetVerify (Instance->TlsConn);
309 Instance->TlsConn,
321 CopyMem (Data, &Instance->TlsSessionState, *DataSize);
330 TlsGetClientRandom (Instance->TlsConn, (UINT8 *) Data);
339 TlsGetServerRandom (Instance->TlsConn, (UINT8 *) Data);
348 Status = TlsGetKeyMaterial (Instance->TlsConn, (UINT8 *) Data);
376 @param[in] This Pointer to the EFI_TLS_PROTOCOL instance.
411 TLS_INSTANCE *Instance;
425 Instance = TLS_INSTANCE_FROM_PROTOCOL (This);
428 switch (Instance->TlsSessionState) {
434 Instance->TlsConn,
452 Instance->TlsSessionState = EfiTlsSessionHandShaking;
460 Instance->TlsConn,
483 Instance->TlsConn,
507 if (TlsInHandshake (Instance->TlsConn)) {
509 Instance->TlsConn,
519 if (!TlsInHandshake (Instance->TlsConn)) {
520 Instance->TlsSessionState = EfiTlsSessionDataTransferring;
529 Instance->TlsConn,
537 Instance->TlsSessionState = EfiTlsSessionError;
556 @param[in] This Pointer to the EFI_TLS_PROTOCOL instance.
594 TLS_INSTANCE *Instance;
606 Instance = TLS_INSTANCE_FROM_PROTOCOL (This);
608 if (Instance->TlsSessionState != EfiTlsSessionDataTransferring) {
620 Status = TlsEncryptPacket (Instance, FragmentTable, FragmentCount);
623 Status = TlsDecryptPacket (Instance, FragmentTable, FragmentCount);