There is provided a
processing system (1) configured to execute a
processing function f(x) in response to the
receipt of an input information word x comprising k information symbols, the
processing system comprising a protection device (10) configured to protect the execution of the processing function using a tweakable code-based masking, and a processing unit (11) to execute the processing function, by decomposing its execution into one or more basis operations comprising one or more elementary operations comprising at least a component-wise multiplication operation, the processing unit (11) comprising a multiplier (105) configured to perform the multiplication operation. The protection device (10) determines an encoding matrix A from an information code and a masking code, being linear codes and being determined randomly, the processing device comprising an
encoder (102) configured to
encode the input information word x, and each
operand of an elementary operation, prior to its execution using the encoding matrix A. The multiplication operation performed by said multiplier (105) is further masked using the pseudo-inverse matrix A -1 of the encoding matrix A, and the pseudo-inverse
transpose matrix A -T of the encoding matrix A, such that (AT)-1 = (A-1)T.