Skip to content

Commit

Permalink
Bug fixed in bcpowmod
Browse files Browse the repository at this point in the history
  • Loading branch information
baibaratsky committed Apr 17, 2015
1 parent b590c54 commit 6d70bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Signer.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function sign($data)
$base = pack('v', strlen($base)) . $base;

// Modular exponentiation
$dec = bcpowmod(self::reverseToDecimal($base), $this->power, $this->modulus);
$dec = bcpowmod(self::reverseToDecimal($base), $this->power, $this->modulus, 0);

// Convert result to hexadecimal
$hex = self::dec2hex($dec);
Expand Down

0 comments on commit 6d70bb9

Please sign in to comment.