Patent ID: 8321659

Claim:
A data encryption apparatus that encrypts data and transfers the encrypted data from a first apparatus to a second apparatus, the data encryption apparatus comprising: a data storing unit; and a processor coupled to the data storing unit, wherein the processor executes a process including: storing data received from the first apparatus in a data storing unit setting transfer channel identification information for identifying a channel used to transfer data for each data stored in the data storing unit; reading out, based on the transfer channel identification information set by the setting, data stored in the data storing unit in a unit of a first data size; encrypting the read data in a unit of a second data size, and if data whose size is smaller than the second data size remains as a result the encrypting of the read data, holding remaining data without encryption; and transferring to the second apparatus the data encrypted in the unit of the second data size based on the transfer channel identification information, wherein the transferring sends a data read request with the transfer channel identification information, if the processor does not hold the remaining data after the encryption in the unit of the second data size when receiving a data transfer request processor reads out data based on the transfer channel identification information from the data storing unit and encrypts the read out data in a unit of a second data size, if the processor holds the remaining data and transfer channel identification information included in a received data transfer request matches the transfer channel identification information or encryption of the remaining data when receiving the data transfer request the processor combines the read out data from the data storing unit with the remaining data and decrypts the combined data in the unit of the second data size, and if the processor holds the remaining data and the transfer channel identification information included in the received data transfer request does not match the transfer channel identification information or encryption of the remaining data when receiving the data transfer request the processor reads out data from the data storing unit and encrypts the read out data in the unit of the second data size without combining the remaining data.