Skip to content

Commit

Permalink
Merge pull request #838 from maraoz/improve/README
Browse files Browse the repository at this point in the history
return comment to deterministicK
  • Loading branch information
yemel committed Dec 22, 2014
2 parents bf09710 + 225ade6 commit 7473ab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/crypto/ecdsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ ECDSA.prototype.randomK = function() {
// https://tools.ietf.org/html/rfc6979#section-3.2
ECDSA.prototype.deterministicK = function(badrs) {
/* jshint maxstatements: 25 */
// if r or s were invalid when this function was used in signing,
// we do not want to actually compute r, s here for efficiency, so,
// we can increment badrs. explained at end of RFC 6979 section 3.2
if (_.isUndefined(badrs)) {
badrs = 0;
}
Expand Down

0 comments on commit 7473ab8

Please sign in to comment.