C# Class SecurityDriven.Inferno.EtM_CTR

Mostra file Open project: sdrapkin/SecurityDriven.Inferno Class Usage Examples

Public Methods

Method Description
Authenticate ( byte masterKey, ArraySegment ciphertext, ArraySegment salt = null, uint counter = 1 ) : bool
Decrypt ( byte masterKey, ArraySegment ciphertext, ArraySegment salt = null, uint counter = 1 ) : byte[]
Decrypt ( byte masterKey, ArraySegment ciphertext, ArraySegment &outputSegment, ArraySegment salt = null, uint counter = 1 ) : void
Encrypt ( byte masterKey, ArraySegment plaintext, ArraySegment salt = null, uint counter = 1 ) : byte[]
Encrypt ( byte masterKey, ArraySegment plaintext, byte output, int outputOffset, ArraySegment salt = null, uint counter = 1 ) : void

Method Details

Authenticate() public static method

public static Authenticate ( byte masterKey, ArraySegment ciphertext, ArraySegment salt = null, uint counter = 1 ) : bool
masterKey byte
ciphertext ArraySegment
salt ArraySegment
counter uint
return bool

Decrypt() public static method

public static Decrypt ( byte masterKey, ArraySegment ciphertext, ArraySegment salt = null, uint counter = 1 ) : byte[]
masterKey byte
ciphertext ArraySegment
salt ArraySegment
counter uint
return byte[]

Decrypt() public static method

public static Decrypt ( byte masterKey, ArraySegment ciphertext, ArraySegment &outputSegment, ArraySegment salt = null, uint counter = 1 ) : void
masterKey byte
ciphertext ArraySegment
outputSegment ArraySegment
salt ArraySegment
counter uint
return void

Encrypt() public static method

public static Encrypt ( byte masterKey, ArraySegment plaintext, ArraySegment salt = null, uint counter = 1 ) : byte[]
masterKey byte
plaintext ArraySegment
salt ArraySegment
counter uint
return byte[]

Encrypt() public static method

public static Encrypt ( byte masterKey, ArraySegment plaintext, byte output, int outputOffset, ArraySegment salt = null, uint counter = 1 ) : void
masterKey byte
plaintext ArraySegment
output byte
outputOffset int
salt ArraySegment
counter uint
return void