Patent ID: 9122871
Filing Date: 2015-09-01
Classification: G06F

Abstract:
1. A method for management, by a device, of a matrix of keys comprising at least one row and at least two columns, each key, when pressed, enabling short-circuiting of a row and a column of said matrix, the method comprising at least two iterations of a scan phase comprising the following steps for each of the rows processed successively: writing a predetermined logic value to the row; and for each column, reading a logic value in the column to determine whether the column is short-circuited with the row, by comparison between the logic value read and the predetermined logic value, wherein, during at least one part of a time slot included between two successive iterations of the scan phase, the device carries out: a first mechanism of protection comprising reading a logic value on at least one row or column, and detecting an attempt at illicit scanning as a function of the logic value read; and a second mechanism of protection comprising writing an arbitrary logic value, equal to or different from the predetermined logic value, to at least one row or column, so as to prevent an attempt at illicit scanning, wherein the device carries out the second mechanism of protection on at least one given row or column, during at least one part of the time slot except during at least one detection time interval, wherein during each detection time interval, the device carries out the first mechanism of protection, comprising reading a logic value on said at least one given row or column, and detecting an attempt at illicit scanning if the logic value read is different from said arbitrary logic value written by the second mechanism before said detection time interval, wherein each row or column to which the device writes, before said detection time interval, in carrying out the second mechanism of protection, is placed in a state of low impedance, wherein each row or column on which the device reads, during said detection time interval, in carrying out the first mechanism of protection, is placed in a state of high impedance, and wherein, for said at least one given row or column, the start of the detection time interval corresponds to a passage from said state of low impedance to said state of high impedance, giving rise to a voltage measurable by the device if a current resulting from an attempt at illicit scanning is present on said at least one given row or column.