Secure computation of functionalities based on Hamming distance and its application to computing document similarity. (1st January 2013)