32 references to ProtocolToken
System.Net.Security (32)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
514internal static SecurityStatusPalErrorCode DoSslHandshake(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken token) 595internal static Ssl.SslErrorCode Encrypt(SafeSslHandle context, ReadOnlySpan<byte> input, ref ProtocolToken outToken)
System\Net\Security\SslStream.cs (1)
451ProtocolToken token = CreateShutdownToken();
System\Net\Security\SslStream.IO.cs (11)
87private ProtocolToken EncryptData(ReadOnlyMemory<byte> buffer) 95ProtocolToken token = default; 213ProtocolToken token = default; 284ProtocolToken token = default; 488private ProtocolToken ProcessTlsFrame(int frameSize) 517ProtocolToken token = NextMessage(availableData.Slice(0, chunkSize), out int consumed); 551private bool CompleteHandshake(ref ProtocolToken alertToken, out SslPolicyErrors sslPolicyErrors, out X509ChainStatusFlags chainStatus) 591ProtocolToken alertToken = default; 626ProtocolToken token; 671ProtocolToken token = default; 699static async ValueTask CompleteWriteAsync(ValueTask writeTask, ProtocolToken token)
System\Net\Security\SslStream.Protocol.cs (11)
817internal ProtocolToken NextMessage(ReadOnlySpan<byte> incomingBuffer, out int consumed) 819ProtocolToken token = GenerateToken(incomingBuffer, out consumed); 844private ProtocolToken GenerateToken(ReadOnlySpan<byte> inputBuffer, out int consumed) 850ProtocolToken token = default; 964internal ProtocolToken Renegotiate() 1001internal ProtocolToken Encrypt(ReadOnlyMemory<byte> buffer) 1005ProtocolToken token = SslStreamPal.EncryptMessage( 1038internal bool VerifyRemoteCertificate(RemoteCertificateValidationCallback? remoteCertValidationCallback, SslCertificateTrust? trust, ref ProtocolToken alertToken, out SslPolicyErrors sslPolicyErrors, out X509ChainStatusFlags chainStatus) 1161private void CreateFatalHandshakeAlertToken(SslPolicyErrors sslPolicyErrors, X509Chain chain, ref ProtocolToken alertToken) 1199private ProtocolToken CreateShutdownToken() 1220private ProtocolToken GenerateAlertToken()
System\Net\Security\SslStreamPal.Unix.cs (7)
37public static ProtocolToken AcceptSecurityContext( 47public static ProtocolToken InitializeSecurityContext( 63public static ProtocolToken EncryptMessage(SafeDeleteSslContext securityContext, ReadOnlyMemory<byte> input, int _ /*headerSize*/, int _1 /*trailerSize*/) 65ProtocolToken token = default; 139public static ProtocolToken Renegotiate( 173private static ProtocolToken HandshakeInternal(ref SafeDeleteSslContext? context, 176ProtocolToken token = default;