For example, when an encryption processing circuit 1A is incorporated in a device such as an IC card, a mask data (hereinafter also referred to simply as ???mask???) is added to a key data which is read from an EEPROM (not shown) in the IC card, and the masked key data is input into the encryption processing circuit 1A. Then, in the encryption processing circuit 1A, after the mask is removed, pred