1. A computer-implemented method for testing a resistance of an algorithm using at least one secret quantity against attacks measuring a physical effect of an execution of the algorithm by an integrated circuit, comprising: formulating at least one hypothesis about at least some bits of the at least one secret quantity; storing, as stored values, input values to be processed by steps of the algorithm for different input data and respective algorithmic output values resulting from applying the steps of the algorithm to the input values; using at least one processor to evaluate the at least one hypothesis, comprising applying statistical key search functions to the stored values.