| CPC H04L 9/0869 (2013.01) | 20 Claims |

|
1. A method to generate a cryptographic key, the method comprising:
obtaining, by a processing device, a plurality of input numbers associated with a cryptographic application;
generating, by the processing device, a masking matrix (MM), wherein the MM comprises:
a first element that is obtained using at least a first random number, and
a second element that is obtained using at least a second random number;
obtaining, by the processing device, a plurality of masked numbers using a matrix product of the MM and the plurality of input numbers;
determining, by the processing device, a first greatest common divisor (GCD), wherein the first GCD is a GCD of the plurality of masked numbers;
identifying, by the processing device, using the first GCD, a second GCD, wherein the second GCD is GCD of the plurality of the input numbers; and
generating, by the processing device, the cryptographic key using the second GCD.
|