Authentication and Confidentiality in Wireless Ad Hoc Networks