C# Class AaltoTLS.RecordLayer.RecordHandler

Show file Open project: juhovh/AaltoTLS Class Usage Examples

Public Methods

Method Description
ChangeLocalState ( ) : void
ChangeRemoteState ( ) : void
ProcessInputRecord ( Record input ) : bool
ProcessOutputRecord ( Record output ) : void
RecordHandler ( ProtocolVersion version, bool isClient ) : System
SetCipherSuite ( CipherSuite cipherSuite, ConnectionState connectionState ) : void

Private Methods

Method Description
CompressRecord ( Record record ) : void
CreateAEADDecryptor ( CipherSuite cipherSuite, Record record, byte key, byte fixedIV, System.UInt64 seqNum ) : ICryptoTransform
CreateAEADEncryptor ( CipherSuite cipherSuite, Record record, byte key, byte fixedIV, byte recordIV, System.UInt64 seqNum, byte &nonceExplicit ) : ICryptoTransform
DecompressRecord ( Record record ) : void
DecryptRecord ( CipherSuite cipherSuite, Record record, ICryptoTransform cipher ) : bool
EncryptRecord ( CipherSuite cipherSuite, Record record, ICryptoTransform cipher, byte nonceExplicit ) : void
GenerateAEADNonce ( byte nonceImplicit, byte nonceExplicit ) : byte[]
GenerateAEADNonceExplicit ( byte recordIV, System.UInt64 seqNum ) : byte[]
GenerateMAC ( CipherSuite cipherSuite, Record record, System.UInt64 seqNum, KeyedHashAlgorithm hasher ) : void
GeneratePadding ( CipherSuite cipherSuite, Record record ) : void
GetAdditionalBytes ( System.UInt64 seqNum, byte type, ProtocolVersion version, int length ) : byte[]
RemoveMAC ( CipherSuite cipherSuite, Record record, System.UInt64 seqNum, KeyedHashAlgorithm hasher ) : bool
RemovePadding ( CipherSuite cipherSuite, Record record ) : bool
TransformRecordBytes ( BulkCipherAlgorithmType cipherType, ICryptoTransform transform, byte input ) : byte[]

Method Details

ChangeLocalState() public method

public ChangeLocalState ( ) : void
return void

ChangeRemoteState() public method

public ChangeRemoteState ( ) : void
return void

ProcessInputRecord() public method

public ProcessInputRecord ( Record input ) : bool
input Record
return bool

ProcessOutputRecord() public method

public ProcessOutputRecord ( Record output ) : void
output Record
return void

RecordHandler() public method

public RecordHandler ( ProtocolVersion version, bool isClient ) : System
version AaltoTLS.PluginInterface.ProtocolVersion
isClient bool
return System

SetCipherSuite() public method

public SetCipherSuite ( CipherSuite cipherSuite, ConnectionState connectionState ) : void
cipherSuite AaltoTLS.PluginInterface.CipherSuite
connectionState ConnectionState
return void