Increasing Authentication and Communication Confidentiality in Wireless Sensor Networks