On the Design of a Stream Cipher and a Hash Function Suitable to Smart Card Applications