Host controller and system-on-chip

A host controller for controlling the storage devices, analyzes the commands provided by the system memory and a communication system memory interface, storage devices and communication storage interface, an encryption unit for encrypting data to be written to the storage devices from the system memory, and a processor which extracts a file encryption and disk encryption information from the command and, based on the file encryption by selectively controlling the encryption unit to perform a file encryption operation, and based on the disk encryption information encrypted so as to selectively perform the disk encryption operation portion a control unit for controlling. Accordingly, since the host controller supports file encryption and disk encryption, the security of the storage device can be enhanced.