Méthode | Description | |
---|---|---|
DecryptMessage ( ContentType contentType, NetMQMessage cipherMessage ) : NetMQMessage |
Return a new NetMQMessage that contains the decrypted content of the give message.
|
|
Dispose ( ) : void |
Dispose of all contained resources.
|
|
EncryptMessage ( ContentType contentType, NetMQMessage plainMessage ) : NetMQMessage | ||
InitalizeCipherSuite ( ) : void | ||
RecordLayer ( byte protocolVersion ) : System |
Create a new RecordLayer object with the given protocol-version.
|
|
ValidateBytes ( ContentType contentType, ulong seqNum, int frameIndex, byte plainBytes, byte mac, byte padding ) : void |
Check the given arguments and throw a NetMQSecurityException if something is amiss.
|
Méthode | Description | |
---|---|---|
CheckReplayAttack ( ulong seqNumber ) : bool | ||
DecryptBytes ( ICryptoTransform decryptor, byte cipherBytes, byte &plainBytes, byte &mac, byte &padding ) : void | ||
EncryptBytes ( ICryptoTransform encryptor, ContentType contentType, ulong seqNum, int frameIndex, byte plainBytes ) : byte[] | ||
GenerateIV ( ICryptoTransform encryptor, byte seqNumBytes ) : byte[] |
Create and return an Initialization Vector (IV) using a given sequence-number and encryptor.
|
|
GenerateKeys ( byte &clientMAC, byte &serverMAC, byte &clientEncryptionKey, byte &serverEncryptionKey ) : void | ||
GetAndIncreaseSequneceNumber ( ) : ulong |
Increment and return the sequence-number.
|
public DecryptMessage ( ContentType contentType, NetMQMessage cipherMessage ) : NetMQMessage | ||
contentType | ContentType | This identifies the type of content: ChangeCipherSpec, Handshake, or ApplicationData. |
cipherMessage | NetMQMessage | the message to decrypt |
Résultat | NetMQMessage |
public EncryptMessage ( ContentType contentType, NetMQMessage plainMessage ) : NetMQMessage | ||
contentType | ContentType | This identifies the type of content: ChangeCipherSpec, Handshake, or ApplicationData. |
plainMessage | NetMQMessage | The unencrypted form of the message to be encrypted. |
Résultat | NetMQMessage |
public RecordLayer ( byte protocolVersion ) : System | ||
protocolVersion | byte | a 2-element byte-array that denotes the version of this protocol |
Résultat | System |
public ValidateBytes ( ContentType contentType, ulong seqNum, int frameIndex, byte plainBytes, byte mac, byte padding ) : void | ||
contentType | ContentType | This identifies the type of content: ChangeCipherSpec, Handshake, or ApplicationData. |
seqNum | ulong | |
frameIndex | int | |
plainBytes | byte | |
mac | byte | |
padding | byte | |
Résultat | void |