The energy impact of security mechanisms in modern mobile devices