| CPC G06F 21/44 (2013.01) | 18 Claims |

|
1. A method for writing authentication information, applicable to a system-on-chip (SoC), the method comprising: configuring a processor to perform:
writing predetermined authentication information into an overlay data register (ODR);
executing a boot process, reading the ODR according to a secure attribute table stored in a read-only memory in the boot process to obtain to-be-verified authentication information corresponding to the predetermined authentication information, wherein the to-be-verified authentication information is used to replace authentication information predetermined to be read from a one-time programmable (OTP) memory in the boot process;
executing a security verification process of the boot process on the to-be-verified authentication information to determine whether or not the to-be-verified authentication information passes a security verification; and
in response to determining that the to-be-verified authentication information passes the security verification, writing the to-be-verified authentication information into the OTP memory to serve as the authentication information.
|