Energy-aware digital signatures