diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-09-03 19:07:32 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-09-03 19:07:32 +0800 |
commit | c56818cfb2fa26ac08cf1899faa7b2c7c0ffcd25 (patch) | |
tree | d038504d4a997bfe2ab546346f4071a562495259 | |
parent | 9a859e994ab3bb11fd23f77a108bd16c8e06565e (diff) | |
download | dexon-mcl-c56818cfb2fa26ac08cf1899faa7b2c7c0ffcd25.tar.gz dexon-mcl-c56818cfb2fa26ac08cf1899faa7b2c7c0ffcd25.tar.zst dexon-mcl-c56818cfb2fa26ac08cf1899faa7b2c7c0ffcd25.zip |
clear Elgamal::CipherText in cstr
-rw-r--r-- | include/mcl/elgamal.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mcl/elgamal.hpp b/include/mcl/elgamal.hpp index c3dc371..028368e 100644 --- a/include/mcl/elgamal.hpp +++ b/include/mcl/elgamal.hpp @@ -30,6 +30,10 @@ struct ElgamalT { struct CipherText { Ec c1; Ec c2; + CipherText() + { + clear(); + } /* (c1, c2) = (0, 0) is trivial valid ciphertext for m = 0 */ |