Energy efficient and SCA-resistant cryptographic hardware for IOT applications