Efficient cryptographic building blocks for processing private measurements in e-healthcare