A Comparative Study of Stream Ciphers and Hash Functions for RFID Authentications