@Test public void testDivideConstant() { fail("Not yet implemented"); }
public static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant) { final BigInteger negated = Exponentiation.modInverse(constant, encryptionKey.getNSquared()); return multiplyConstant(encryptionKey, c1, negated); }
PaillierHomomorphicUtil { public static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant) { final BigInteger negated = Exponentiation.modInverse(constant, encryptionKey.getNSquared()); return multiplyConstant(encryptionKey, c1, negated); } }
PaillierHomomorphicUtil { public static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant) { final BigInteger negated = Exponentiation.modInverse(constant, encryptionKey.getNSquared()); return multiplyConstant(encryptionKey, c1, negated); }  }
PaillierHomomorphicUtil { public static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant) { final BigInteger negated = Exponentiation.modInverse(constant, encryptionKey.getNSquared()); return multiplyConstant(encryptionKey, c1, negated); }  static BigInteger addCiphertexts(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger c2); static BigInteger subtractCiphertexts(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger c2); static BigInteger addConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger subtractConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger multiplyConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); }
PaillierHomomorphicUtil { public static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant) { final BigInteger negated = Exponentiation.modInverse(constant, encryptionKey.getNSquared()); return multiplyConstant(encryptionKey, c1, negated); }  static BigInteger addCiphertexts(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger c2); static BigInteger subtractCiphertexts(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger c2); static BigInteger addConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger subtractConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger multiplyConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant); static BigInteger divideConstant(final PaillierPublicKey encryptionKey, final BigInteger c1, final BigInteger constant);  }