|
@@ -14,7 +14,8 @@ class BGNPublicKey
|
|
void encrypt(CurveBipoint& G_element, const Scalar& cleartext) const;
|
|
void encrypt(CurveBipoint& G_element, const Scalar& cleartext) const;
|
|
void encrypt(TwistBipoint& H_element, const Scalar& cleartext) const;
|
|
void encrypt(TwistBipoint& H_element, const Scalar& cleartext) const;
|
|
void encrypt(CurveBipoint& G_element, TwistBipoint& H_element, const Scalar& cleartext) const;
|
|
void encrypt(CurveBipoint& G_element, TwistBipoint& H_element, const Scalar& cleartext) const;
|
|
- CurveBipoint encrypt(Scalar& lambda, const Scalar& cleartext) const;
|
|
|
|
|
|
+ CurveBipoint curveEncrypt(Scalar& lambda, const Scalar& cleartext) const;
|
|
|
|
+ TwistBipoint twistEncrypt(Scalar& lambda, const Scalar& cleartext) const;
|
|
|
|
|
|
CurveBipoint homomorphic_addition(const CurveBipoint& a, const CurveBipoint& b) const;
|
|
CurveBipoint homomorphic_addition(const CurveBipoint& a, const CurveBipoint& b) const;
|
|
TwistBipoint homomorphic_addition(const TwistBipoint& a, const TwistBipoint& b) const;
|
|
TwistBipoint homomorphic_addition(const TwistBipoint& a, const TwistBipoint& b) const;
|