Hi Alexander, Shooting from the hip, are intInput and priv relatively prime? Jeff
Jeffrey Walton [EMAIL PROTECTED] Network Engineer From: Pecherin, Alexander [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 8:34 AM To: [EMAIL PROTECTED] Subject: InvertibleRSAFunction: computational error during private key operation Hi all, When i try to execute such simple code: RSA::PrivateKey priv; priv.Initialize(randPool, 384); byte input[48]; memset(input, 255, 48); // if you try "memset(input, 1, 48);" it will be ok Integer intInput((byte*)input, 48); Integer intOutput = priv.CalculateRandomizedInverse(randPool, intInput); i get exception "InvertibleRSAFunction: computational error during private key operation" in InvertibleRSAFunction::CalculateInverse. If i try to use small input number (like memset(input, 1, 48)), it works fine. i think that code does not satisfy some conditions, but what is it ? Thanks and regards, Alexander Pecherin
