public byte[] EncryptedCommand(AuthenticationCrypto authenticationCrypto) { if (encryptedCommand == null) { encryptedCommand = BitConverter.GetBytes((uint)this.Command); authenticationCrypto.Encrypt(encryptedCommand, 0, encryptedCommand.Length); } return encryptedCommand; }
public byte[] EncryptedCommand(AuthenticationCrypto authenticationCrypto) { if (encryptedCommand == null) { encryptedCommand = BitConverter.GetBytes((uint)this.Command); authenticationCrypto.Encrypt(encryptedCommand, 0, encryptedCommand.Length); } return(encryptedCommand); }
public byte[] EncryptedSize (AuthenticationCrypto authenticationCrypto) { if (encryptedSize == null) { encryptedSize = BitConverter.GetBytes(this.Size).SubArray(0, 2); Array.Reverse(encryptedSize); authenticationCrypto.Encrypt(encryptedSize, 0, 2); } return encryptedSize; }
public byte[] EncryptedSize(AuthenticationCrypto authenticationCrypto) { if (encryptedSize == null) { encryptedSize = BitConverter.GetBytes(this.Size).SubArray(0, 2); Array.Reverse(encryptedSize); authenticationCrypto.Encrypt(encryptedSize, 0, 2); } return(encryptedSize); }