From c8564d867650ae7bb527dd8579c74029aa9dac9e Mon Sep 17 00:00:00 2001 From: "mhanson@gmail.com" Date: Sun, 6 Mar 2011 14:35:00 -0800 Subject: [PATCH] Fix Mozilla-ism in rsasign-to-SJCL binding --- lib/kurushima-jsrsa/rsa-sign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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