1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | $ src/vote/vote Generated the following keypair: Public key: n = 0x887 g = 0x28AB01 Private key: λ = 0x414 μ = 0x518 Votes: Vote no 1: Value: 1 (yes) Encrypted: 0xB5AB Current sum: 0xB5AB Vote no 2: Value: 0 (no) Encrypted: 0xA6F8E Current sum: 0xB2539 Vote no 3: Value: 0 (no) Encrypted: 0x2FDB7C Current sum: 0x3B00B5 Sum: Encrypted: 0x3B00B5 Decrypted: 0x518 (1304) |