Commit Graph
5 Commits
Author SHA1 Message Date
Piotr Dyraga 9d17da0d33 ThresholdKey renamed to ThresholdPublicKey 2018-06-01 21:36:04 +02:00
Piotr Dyraga e43575684d Removed G parameter serialization code for ThresholdKey 2018-05-30 15:37:53 +02:00
Piotr Dyraga 4595f69872 G parameter moved from PublicKey to ThresholdKey
We don't need G for our PublicKey since it's now always equal N+1. It's required by the `ThresholdKey` to compile, so I moved it there. I will investigate if for a threshold Paillier scheme G is really needed in the pkey.
2018-05-24 19:13:29 +02:00
Piotr Dyraga 69c60e90d5 Do not cache N^2 value in PublicKey
Let's keep this structure clean. Computing N^2 is just a really small piece of encryption/decryption work and if we decide we need to tweak performance, we will need a different approach anyway.
2018-05-24 19:02:01 +02:00
didier amyot 8a9743f08e imported from https://bitbucket.org/ustraca/crypto 2014-11-29 22:40:35 -08:00