MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / check_pk_id

Function check_pk_id

FHE/Ciphertext.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20word check_pk_id(word a, word b)
21{
22 if (a == 0)
23 return b;
24 else if (b == 0 or a == b)
25 return a;
26 else
27 {
28 cout << a << " vs " << b << endl;
29 throw runtime_error("public keys of ciphertext operands don't match");
30 }
31}
32
33
34void Ciphertext::Scale()

Callers 3

addFunction · 0.85
subFunction · 0.85
mulFunction · 0.85

Calls 1

runtime_errorFunction · 0.85

Tested by

no test coverage detected