Design And Analysis of Authentication Mechanisms In Single- And Multi-Hop Wireless Networks