code: function _rsasign_getHexPaddedDigestInfoForString(s, keySize, hashAlg) {
      var hashFunc = function(s) { return KJUR.crypto.Util.hashString(s, hashAlg); };
      var sHashHex = hashFunc(s);
  
      return KJUR.crypto.Util.getPaddedDigestInfoHex(sHashHex, hashAlg, keySize);
  }
docs: ======================================================================== Signature Generation ========================================================================