The invention provides an SM4
algorithm white box implementation method and device,
electronic equipment and a computer medium. The method comprises the steps of obtaining
plaintext information to beencrypted; performing 32 rounds of transformation on the
plaintext information to obtain an
encryption result corresponding to the
plaintext information, wherein each round of transformation in the 32rounds of transformation comprises the following steps: in the round of
lookup table TAr, searching a first lookup result corresponding to the second round of data to be processed and the third roundof data to be processed; searching a first search result of the round and a second search result corresponding to fourth to-be-processed data of the round in the round search table TBr; searching a third search result corresponding to the second search result in the round of
lookup table TCr; in the round of
lookup table TDr, searching a fourth lookup result corresponding to the first round of data to be processed and the third round of lookup result, wherein r is equal to 1, 2, 3,..., 32, the lookup table
TAr, the lookup table TBr, the lookup table TCr and the lookup table TDr are used for completing the rth round of operation of the SM4
algorithm, and encoding protection is carried out on an operation result; and the key has
high security.