Secure and trusted in-network data processing in wireless sensor networks: a survey