aboutsummaryrefslogtreecommitdiffstats
path: root/sample/she_smpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sample/she_smpl.cpp')
-rw-r--r--sample/she_smpl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/she_smpl.cpp b/sample/she_smpl.cpp
index cd5a4c1..ab60684 100644
--- a/sample/she_smpl.cpp
+++ b/sample/she_smpl.cpp
@@ -85,8 +85,8 @@ void usePrimitiveCipherText()
pub.enc(d2, b2);
c1.add(c2); // CipherTextG1 is additive HE
d1.add(d2); // CipherTextG2 is additive HE
- CipherTextM cm; // size of CipherTextM = N * 12 * 4
- CipherTextM::mul(cm, c1, d1); // cm = c1 * d1
+ CipherTextGT cm; // size of CipherTextGT = N * 12 * 4
+ CipherTextGT::mul(cm, c1, d1); // cm = c1 * d1
cm.add(cm); // 2cm
int m = sec.dec(cm);
int ok = (a1 + a2) * (b1 + b2) * 2;
@@ -109,7 +109,7 @@ void usePrimitiveCipherText()
s = cm.getStr(mcl::IoFixedSizeByteSeq); // serialize
printf("cm data size %d byte\n", (int)s.size());
- CipherTextM cm2;
+ CipherTextGT cm2;
cm2.setStr(s, mcl::IoFixedSizeByteSeq);
printf("deserialize %s\n", cm == cm2 ? "ok" : "ng");
}