         guard let encryptedData = UInt128(data: data)
             else { return nil }
         
-        self.encryptedData = encryptedData
+        self.encryptedData = UInt128(littleEndian: encryptedData)
     }
 }

    
    static func += (data: inout Data, value: HCILEEncrypt) {
        
         // no endianness because it does not represent a numerical value
        data += value.key
        data += value.plainText
    }
}


    ///
    /// The Commnad is used to request the Controller to encrypt the Plaintext_Data in the command using the Key given in the command
    /// and returns the Encrypted_Data to the Host.
    func lowEnergyEncrypt(key: UInt128,
                          data: UInt128,
                          timeout: HCICommandTimeout = .default) throws -> UInt128 {
        
        let parameters = HCILEEncrypt(key: key, plainText: data)
        
