Skip to content

Commit

Permalink
Fix Mozilla-ism in rsasign-to-SJCL binding
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Mar 6, 2011
1 parent 220d5e1 commit c8564d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kurushima-jsrsa/rsa-sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8564d8

Please sign in to comment.