C# 클래스 SecurityDriven.Inferno.EtM_CBC

파일 보기 프로젝트 열기: sdrapkin/SecurityDriven.Inferno 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( byte masterKey, ArraySegment ciphertext, ArraySegment salt = null, uint counter = 1 ) : bool
CalculateCiphertextLength ( ArraySegment plaintext ) : int
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

메소드 상세

Authenticate() 공개 정적인 메소드

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

CalculateCiphertextLength() 공개 정적인 메소드

public static CalculateCiphertextLength ( ArraySegment plaintext ) : int
plaintext ArraySegment
리턴 int

Decrypt() 공개 정적인 메소드

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

Decrypt() 공개 정적인 메소드

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
리턴 void

Encrypt() 공개 정적인 메소드

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

Encrypt() 공개 정적인 메소드

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
리턴 void