C# Class SecurityDriven.Inferno.EtM_CTR

Afficher le fichier Open project: sdrapkin/SecurityDriven.Inferno Class Usage Examples

Méthodes publiques

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

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

Decrypt() public static méthode

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

Decrypt() public static méthode

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
Résultat void

Encrypt() public static méthode

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

Encrypt() public static méthode

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
Résultat void