Let's consider such process:
- Two emitents emit two (integer) secret numbers independently
- They encrypt (encode) these number in such a way that no-one (except emitent) can decode these numbers. Emitents also cannot decode/know numbers of each other.
- Now having two block of decoded numbers we need to find the sum of these numbers
So, I need algorithms for achieving above
- Number decoding (point 2 above)
- Sum calculation (point 3 above)