def __init__(self, n, e): phi = n-1 d = modular_inverse(e, phi) p = n q = special_unity(1) self.key = RSA.RSAImplementation(use_fast_math=False).construct((n,e,d,p,q))