Computational and Energy Costs of Cryptographic Algorithms on Handheld Devices