C# Class AaltoTLS.RecordLayer.RecordHandler

Afficher le fichier Open project: juhovh/AaltoTLS Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ChangeLocalState ( ) : void
Résultat void

ChangeRemoteState() public méthode

public ChangeRemoteState ( ) : void
Résultat void

ProcessInputRecord() public méthode

public ProcessInputRecord ( Record input ) : bool
input Record
Résultat bool

ProcessOutputRecord() public méthode

public ProcessOutputRecord ( Record output ) : void
output Record
Résultat void

RecordHandler() public méthode

public RecordHandler ( ProtocolVersion version, bool isClient ) : System
version AaltoTLS.PluginInterface.ProtocolVersion
isClient bool
Résultat System

SetCipherSuite() public méthode

public SetCipherSuite ( CipherSuite cipherSuite, ConnectionState connectionState ) : void
cipherSuite AaltoTLS.PluginInterface.CipherSuite
connectionState ConnectionState
Résultat void