|
@@ -6,6 +6,8 @@ int main(void)
|
|
|
{
|
|
|
BGN system;
|
|
|
|
|
|
+ // const PrivateKey sk = system.get_private_key();
|
|
|
+
|
|
|
Scalar test3(3);
|
|
|
Scalar test5(5);
|
|
|
Scalar decrypted3, decrypted5, decrypted6, decrypted10, decrypted15, decrypted30;
|
|
@@ -14,12 +16,22 @@ int main(void)
|
|
|
std::cout << "Scalar test value (5): " << test5 << std::endl;
|
|
|
|
|
|
CurveBipoint encrypted3, encrypted6;
|
|
|
+ // CurveBipoint pi_1_encrypted3, pi_1_curvegen_times3;
|
|
|
TwistBipoint encrypted5, encrypted10;
|
|
|
Quadripoint encrypted15, encrypted30;
|
|
|
|
|
|
std::cout << "Performing encryptions" << std::endl;
|
|
|
|
|
|
system.encrypt(encrypted3, test3);
|
|
|
+ // pi_1_encrypted3 = sk.pi_1(encrypted3);
|
|
|
+ // pi_1_encrypted3.make_affine();
|
|
|
+ // pi_1_curvegen_times3 = sk.pi_1_curvegen * test3;
|
|
|
+ // pi_1_curvegen_times3.make_affine();
|
|
|
+ // std::cout << std:: endl;
|
|
|
+ // std::cout << "Partially decrypted test value (3): " << pi_1_encrypted3 << std::endl;
|
|
|
+ // std::cout << std:: endl;
|
|
|
+ // std::cout << "What it should match up to (3): " << pi_1_curvegen_times3 << std::endl;
|
|
|
+ // std::cout << std:: endl;
|
|
|
system.encrypt(encrypted5, test5);
|
|
|
|
|
|
std::cout << "Performing additions" << std::endl;
|