implemented nonce as length 6 byte array in applet