diff --git a/lib/kurushima-jsrsa/rsa-sign.js b/lib/kurushima-jsrsa/rsa-sign.js index 3f5b2d5..3e1473f 100644 --- a/lib/kurushima-jsrsa/rsa-sign.js +++ b/lib/kurushima-jsrsa/rsa-sign.js @@ -37,7 +37,7 @@ _RSASIGN_DIHEAD['sha256'] = "3031300d060960864801650304020105000420"; //_RSASIGN_DIHEAD['sha512'] = "3051300d060960864801650304020305000440"; var _RSASIGN_HASHHEXFUNC = []; //_RSASIGN_HASHHEXFUNC['sha1'] = sha1.hex; -_RSASIGN_HASHHEXFUNC['sha256'] = function(i) sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(i)); +_RSASIGN_HASHHEXFUNC['sha256'] = function(i) { return sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(i)); } // ======================================================================== // Signature Generation