主权项 |
1. A function masking apparatus for preventing side channel attacks in symmetric cryptography that utilizes a plurality of internal functions, the apparatus comprising:
a controller including a processor that is configured to execute program instructions to
randomly generate a plurality of non-linear functions, a plurality of linear functions, and a plurality of constants for the internal functions of the symmetric cryptography,for each of the plurality of internal functions,
create a lookup table that includes a plurality of operations, through which at least two functions or constants selected from the plurality of non-linear functions, the plurality of linear functions, and the plurality of constants are used to convert an input to said each internal function to obtain a converted result,mask said each internal function by using the converted result as an output of said each internal function, andencrypt a plaintext using the masked internal functions; and a storage unit storing the created lookup tables for the plurality of internal functions. |