node_modules/node-bignumber/original/rsasign-1.2.js
/**
 * verifies a sigature for a message string with RSA public key.<br/>
 * @name verifyString
 * @memberOf RSAKey#
 * @function
 * @param {String} sMsg message string to be verified.
 * @param {String} hSig hexadecimal string of siganture.<br/>
 *                 non-hexadecimal charactors including new lines will be ignored.
 * @return returns 1 if valid, otherwise 0
 */
verifies a sigature for a message string with RSA public key.
@name verifyString
@memberOf RSAKey
@function
@param {String} sMsg message string to be verified.
@param {String} hSig hexadecimal string of siganture.
non-hexadecimal charactors including new lines will be ignored.
@return returns 1 if valid, otherwise 0
verifies a sigature for a message string with RSA public key . @name verifyString @memberOf RSAKey @function @param { String } sMsg message string to be verified . @param { String } hSig hexadecimal string of siganture . non - hexadecimal charactors including new lines will be ignored . @return returns 1 if valid otherwise 0
function _rsasign_verifyString(sMsg, hSig) {
  hSig = hSig.replace(_RE_HEXDECONLY, '');
  if (hSig.length != this.n.bitLength() / 4) return 0;
  hSig = hSig.replace(/[ \n]+/g, "");
  var biSig = parseBigInt(hSig, 16);
  var biDecryptedSig = this.doPublic(biSig);
  var hDigestInfo = biDecryptedSig.toString(16).replace(/^1f+00/, '');
  var digestInfoAry = _rsasign_getAlgNameAndHashFromHexDisgestInfo(hDigestInfo);
  if (digestInfoAry.length == 0) return false;
  var algName = digestInfoAry[0];
  var diHashValue = digestInfoAry[1];
  var ff = _RSASIGN_HASHHEXFUNC[algName];
  var msgHashValue = ff(sMsg);
  return (diHashValue == msgHashValue);
}
function _rsasign_verifyString ( sMsg , hSig ) { hSig = hSig . replace ( _RE_HEXDECONLY , '' ) ; if ( hSig . length != this . n . bitLength ( ) / 4 ) return 0 ; hSig = hSig . replace ( / [ \n]+ / g , "" ) ; var biSig = parseBigInt ( hSig , 16 ) ; var biDecryptedSig = this . doPublic ( biSig ) ; var hDigestInfo = biDecryptedSig . toString ( 16 ) . replace ( / ^1f+00 / , '' ) ; var digestInfoAry = _rsasign_getAlgNameAndHashFromHexDisgestInfo ( hDigestInfo ) ; if ( digestInfoAry . length == 0 ) return false ; var algName = digestInfoAry [ 0 ] ; var diHashValue = digestInfoAry [ 1 ] ; var ff = _RSASIGN_HASHHEXFUNC [ algName ] ; var msgHashValue = ff ( sMsg ) ; return ( diHashValue == msgHashValue ) ; }
verifies a sigature for a message string with RSA public key.<br/>
 @name verifyString
 @memberOf RSAKey
 @function
 @param {String} sMsg message string to be verified.
verifies a sigature for a message string with RSA public key . <br / > @name verifyString @memberOf RSAKey @function @param { String } sMsg message string to be verified .