The invention discloses a signature method of preventing side-channel
attack from multi-
azimuth. The signature method of preventing side-channel
attack from multi-
azimuth is characterized in that the technology or similar technology contained in the signature method masks the base, and an RSA signature or other public key
system signatures are obtained; in the signature method of preventing side-channel
attack from multi-
azimuth, two module exponentiation results are obtained at the same time, and the power exponents are radix minus one complement for each other; when
modular exponentiation is realized, the
verification technology of preventing outputting error data is used; and for the
modular exponentiation algorithm which does not use the jump statement, the signature method of preventing side-channel attack from multi-azimuth is the technology that during the operation process, the data or the operation result data is equal to the
Hamming weight. The signature method of preventing side-channel attack from multi-azimuth effectively protects the step which is known and is easy to be attacked during the RSA STD operation process. The
modular exponentiation provided by the signature method of preventing side-channel attack from multi-azimuth can be fully applied to the RSA CRT operation, and can realize that the
algorithm of the modular exponentiation
algorithm and the complementary power can be transplanted to the point multiplication operation of SM2 at the same time. The test that whether the module exponentiation is attacked can be similarly transplanted in the point multiplication operation of SM2.