摘要 |
PROBLEM TO BE SOLVED: To provide a memory system which can encrypt data and also highly efficiently compress data.SOLUTION: A memory system 1 comprises: a non-volatile memory 9; a cache memory 3 which has first, second and third areas; a compressor 4 which can compress data stored in the first area; an encryption unit 5 which encrypts data output from the compressor and stores the encrypted data in the second area; a decryption unit 7 which decrypts data stored in the third area and stores the decrypted data in the first area; and a data flow controller 10. The data flow controller performs control for: encrypting user data which is received from a host and stored in the first area by the encryption unit in a non-compressed state to write the encrypted user data in the non-volatile memory via the second area; reading out the user data from the non-volatile memory to the third area at predetermined timing and decrypting the user data by the decryption unit to store the decrypted data in the first area; and compressing the user data by the compressor, then encrypting the compressed user data by the encryption unit to write the encrypted user data in the non-volatile memory via the second area. |