C# 클래스 TLSharp.Core.MTProto.Crypto.AES

파일 보기 프로젝트 열기: sochix/TLSharp

공개 메소드들

메소드 설명
DecryptAES ( AESKeyData key, byte ciphertext ) : byte[]
DecryptIGE ( byte ciphertext, byte key, byte iv ) : byte[]
DecryptWithNonces ( byte data, byte serverNonce, byte newNonce ) : byte[]
EncryptAES ( AESKeyData key, byte plaintext ) : byte[]
EncryptIGE ( byte originPlaintext, byte key, byte iv ) : byte[]
GenerateKeyDataFromNonces ( byte serverNonce, byte newNonce ) : AESKeyData
XOR ( byte buffer1, byte buffer2 ) : byte[]

메소드 상세

DecryptAES() 공개 정적인 메소드

public static DecryptAES ( AESKeyData key, byte ciphertext ) : byte[]
key AESKeyData
ciphertext byte
리턴 byte[]

DecryptIGE() 공개 정적인 메소드

public static DecryptIGE ( byte ciphertext, byte key, byte iv ) : byte[]
ciphertext byte
key byte
iv byte
리턴 byte[]

DecryptWithNonces() 공개 정적인 메소드

public static DecryptWithNonces ( byte data, byte serverNonce, byte newNonce ) : byte[]
data byte
serverNonce byte
newNonce byte
리턴 byte[]

EncryptAES() 공개 정적인 메소드

public static EncryptAES ( AESKeyData key, byte plaintext ) : byte[]
key AESKeyData
plaintext byte
리턴 byte[]

EncryptIGE() 공개 정적인 메소드

public static EncryptIGE ( byte originPlaintext, byte key, byte iv ) : byte[]
originPlaintext byte
key byte
iv byte
리턴 byte[]

GenerateKeyDataFromNonces() 공개 정적인 메소드

public static GenerateKeyDataFromNonces ( byte serverNonce, byte newNonce ) : AESKeyData
serverNonce byte
newNonce byte
리턴 AESKeyData

XOR() 공개 정적인 메소드

public static XOR ( byte buffer1, byte buffer2 ) : byte[]
buffer1 byte
buffer2 byte
리턴 byte[]