| CPC H04L 9/002 (2013.01) [G06F 21/577 (2013.01); G06F 2221/033 (2013.01)] | 22 Claims | 

| 
               1. A method for testing for vulnerability of a cryptographic function to a side-channel attack, the method comprising: 
            providing a plurality of input values to the cryptographic function, wherein the cryptographic function, for each input value of the plurality of input values: 
                calculates a sum of the input value and a first value of the cryptographic function; and 
                  replaces a second value of the cryptographic function with the sum; 
                measuring a set of samples including, for each input value of the plurality of input values, a respective side-channel leakage sample; and 
                iteratively performing a series of operations including: 
                splitting the set of samples into a plurality of subsets based on the plurality of input values; 
                  for each subset of the plurality of subsets, calculating a respective value based on samples of the subset; and 
                  comparing the respective values for different subsets to discover bit values of the first value and bit values of the second value, 
                the bit values of the first value and the bit values of the second value being discovered from respective least significant bits (LSBs) to respective most significant bits (MSBs). 
               |