Skip to content

1.2.5

Compare
Choose a tag to compare
@paulmillr paulmillr released this 23 May 05:42
1.2.5
c45de4b

Improves utils.randomPrivateKey() generation: before, ~2**128 values (curve.n<value<2**256) had 2x chance to be generated. The chance is very small: 1/2**128. We're fixing this by using NIST SP 800-56A rev 3, section 5.6.1.2.2.

Thanks to Jan Winkelmann from LeastAuthority for reporting the issue.