C# Class Mono.Security.Protocol.Tls.RecordProtocol

ファイルを表示 Open project: runefs/Marvin

Protected Properties

Property Type Description
context Context
innerStream Stream

Public Methods

Method Description
BeginReceiveRecord ( Stream record, AsyncCallback callback, object state ) : IAsyncResult
BeginSendRecord ( ContentType contentType, byte recordData, AsyncCallback callback, object state ) : IAsyncResult
BeginSendRecord ( HandshakeType handshakeType, AsyncCallback callback, object state ) : IAsyncResult
EncodeRecord ( ContentType contentType, byte recordData ) : byte[]
EncodeRecord ( ContentType contentType, byte recordData, int offset, int count ) : byte[]
EndReceiveRecord ( IAsyncResult asyncResult ) : byte[]
EndSendRecord ( IAsyncResult asyncResult ) : void
GetMessage ( HandshakeType type ) : HandshakeMessage
ReceiveRecord ( Stream record ) : byte[]
RecordProtocol ( Stream innerStream, Context context ) : System
SendAlert ( Alert alert ) : void
SendAlert ( AlertDescription description ) : void
SendAlert ( AlertLevel level, AlertDescription description ) : void
SendChangeCipherSpec ( ) : void
SendRecord ( ContentType contentType, byte recordData ) : void
SendRecord ( HandshakeType type ) : void

Protected Methods

Method Description
ProcessChangeCipherSpec ( ) : void
ProcessHandshakeMessage ( TlsStream handMsg ) : void

Private Methods

Method Description
Compare ( byte array1, byte array2 ) : bool
InternalReceiveRecordCallback ( IAsyncResult asyncResult ) : void
InternalSendRecordCallback ( IAsyncResult ar ) : void
MapV2CipherCode ( string prefix, int code ) : CipherSuite
ProcessAlert ( AlertLevel alertLevel, AlertDescription alertDesc ) : void
ProcessCipherSpecV2Buffer ( SecurityProtocolType protocol, byte buffer ) : void
ReadClientHelloV2 ( Stream record ) : byte[]
ReadRecordBuffer ( int contentType, Stream record ) : byte[]
ReadStandardRecordBuffer ( Stream record ) : byte[]
decryptRecordFragment ( ContentType contentType, byte fragment ) : byte[]
encryptRecordFragment ( ContentType contentType, byte fragment ) : byte[]

Method Details

BeginReceiveRecord() public method

public BeginReceiveRecord ( Stream record, AsyncCallback callback, object state ) : IAsyncResult
record Stream
callback AsyncCallback
state object
return IAsyncResult

BeginSendRecord() public method

public BeginSendRecord ( ContentType contentType, byte recordData, AsyncCallback callback, object state ) : IAsyncResult
contentType ContentType
recordData byte
callback AsyncCallback
state object
return IAsyncResult

BeginSendRecord() public method

public BeginSendRecord ( HandshakeType handshakeType, AsyncCallback callback, object state ) : IAsyncResult
handshakeType HandshakeType
callback AsyncCallback
state object
return IAsyncResult

EncodeRecord() public method

public EncodeRecord ( ContentType contentType, byte recordData ) : byte[]
contentType ContentType
recordData byte
return byte[]

EncodeRecord() public method

public EncodeRecord ( ContentType contentType, byte recordData, int offset, int count ) : byte[]
contentType ContentType
recordData byte
offset int
count int
return byte[]

EndReceiveRecord() public method

public EndReceiveRecord ( IAsyncResult asyncResult ) : byte[]
asyncResult IAsyncResult
return byte[]

EndSendRecord() public method

public EndSendRecord ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

GetMessage() public method

public GetMessage ( HandshakeType type ) : HandshakeMessage
type HandshakeType
return HandshakeMessage

ProcessChangeCipherSpec() protected method

protected ProcessChangeCipherSpec ( ) : void
return void

ProcessHandshakeMessage() protected abstract method

protected abstract ProcessHandshakeMessage ( TlsStream handMsg ) : void
handMsg TlsStream
return void

ReceiveRecord() public method

public ReceiveRecord ( Stream record ) : byte[]
record Stream
return byte[]

RecordProtocol() public method

public RecordProtocol ( Stream innerStream, Context context ) : System
innerStream Stream
context Context
return System

SendAlert() public method

public SendAlert ( Alert alert ) : void
alert Alert
return void

SendAlert() public method

public SendAlert ( AlertDescription description ) : void
description AlertDescription
return void

SendAlert() public method

public SendAlert ( AlertLevel level, AlertDescription description ) : void
level AlertLevel
description AlertDescription
return void

SendChangeCipherSpec() public method

public SendChangeCipherSpec ( ) : void
return void

SendRecord() public method

public SendRecord ( ContentType contentType, byte recordData ) : void
contentType ContentType
recordData byte
return void

SendRecord() public method

public SendRecord ( HandshakeType type ) : void
type HandshakeType
return void

Property Details

context protected_oe property

protected Context context
return Context

innerStream protected_oe property

protected Stream innerStream
return Stream