Patent ID: 8074079

Claim:
An anti-attacking method for a private key, comprising: using a plurality of storage areas of a memory storage device to store identical security information respectively; when applying a signature rule and the private key to generate a digital signature, selecting one of the storage areas as a currently-used storage area and accessing the security information from the currently-used storage area; when detecting the security information of the currently-used storage area is attacked during the generation of the digital signature, selecting another of the other storage areas as the currently-used storage area so as to provide the correct security information, updating the security information in the currently-used storage area and synchronously updating the security information stored in the other storage areas based on the security information stored in the currently-used storage area; when detecting the security information of the currently-used storage area is non-attacked during the generation of the digital signature, updating the security information in the currently-used storage area, synchronously updating the security information stored in the other storage areas based on the security information stored in the currently-used storage area and selecting another storage area among the other storage areas as the currently-used storage area.