Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EncryptData()

SecurityStatusPal System.Net.Security.SslStream.EncryptData ( ReadOnlyMemory< byte > buffer,
ref byte[] outBuffer,
out int outSize )
inlineprivate

Definition at line 992 of file SslStream.cs.

993 {
995 lock (_handshakeLock)
996 {
997 if (_handshakeWaiter != null)
998 {
999 outSize = 0;
1000 return new SecurityStatusPal(SecurityStatusPalErrorCode.TryAgain);
1001 }
1002 return _context.Encrypt(buffer, ref outBuffer, out outSize);
1003 }
1004 }
SecurityStatusPal Encrypt(ReadOnlyMemory< byte > buffer, ref byte[] output, out int resultSize)
volatile TaskCompletionSource< bool > _handshakeWaiter
Definition SslStream.cs:72

References System.Net.Security.SslStream._context, System.Net.Security.SslStream._handshakeLock, System.Net.Security.SslStream._handshakeWaiter, System.buffer, System.Net.Security.SecureChannel.Encrypt(), and System.Net.Security.SslStream.ThrowIfExceptionalOrNotAuthenticated().

Referenced by System.Net.Security.SslStream.WriteSingleChunk< TIOAdapter >().