Authentication and Encryption for a Robotic Ad Hoc Network Using Identity-Based Cryptography