1. An arithmetic device, comprising: an arithmetic processing circuit configured to perform arithmetic processing according to an encryption method; and an address generating circuit configured to generate an address within a memory device to transfer data used in the arithmetic processing to the memory device, the address being generated using a value updated when the data was modified.