,
    sigalg: "SHA256withRSA",
    signkey: sTSAKEY
  }]
};

var tsa = new KJUR.asn1.tsp.SimpleTSAAdapter(tstParam);

function doIt3() {
  var f1 = document.form1;
  var sigval = f1.si_sigval1.value;
  var hTST = "";
  f1.si_sigtst1.value = "getting TST from Demo TSA...";  

  try {
    var hTST = tsa.getTSTHex(sigval, 'sha256');
    f1.si_sigtst1.value = hTST;
  } catch (ex) {
    f1.si_sigtst1.value = "Error: " + ex;
  }

  try {
    f1.si_sigtst1dmp.value = ASN1HEX.dump(hTST);
  } 