In case of a range search to the encryption DB, conventionally, because there is a correlation between a value of the data and the number of search keys for the range search, the contents of the encrypted data can be inferred and are not safe. The plated film covers the entire thin film. A top layer of the barrier layer metals is patterned by CMP.