Profiling attack against rsa key generation based on a euclidean algorithm