Generating a key on the hardware token