Private functional encryption and secure deduplication