| 18 | |
| 19 | |
| 20 | word 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 | |
| 34 | void Ciphertext::Scale() |
no test coverage detected