Energy efficient node-to-node authentication and communication confidentiality in wireless sensor networks