Realxed RSA problem and Hastadt attack