Exemple #1
0
        public byte[] EncryptedCommand(AuthenticationCrypto authenticationCrypto)
        {
            if (encryptedCommand == null)
            {
                encryptedCommand = BitConverter.GetBytes((uint)this.Command);
                authenticationCrypto.Encrypt(encryptedCommand, 0, encryptedCommand.Length);
            }

            return encryptedCommand;
        }
Exemple #2
0
        public byte[] EncryptedCommand(AuthenticationCrypto authenticationCrypto)
        {
            if (encryptedCommand == null)
            {
                encryptedCommand = BitConverter.GetBytes((uint)this.Command);
                authenticationCrypto.Encrypt(encryptedCommand, 0, encryptedCommand.Length);
            }

            return(encryptedCommand);
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        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);
        }