Software attacks on smart cards