Ryan X. Charles
c7b33eca9a
update key signing to use new SecureRandom
...
...and throw an error if you try to use the old, non-secure random number
generator.
2014-04-25 15:00:51 -03:00
Ryan X. Charles
10d164b292
add require('bignum') in key
2014-04-24 15:33:38 -03:00
Ryan X. Charles
9575929162
Merge branch 'feature/secure-random'
...
Conflicts:
lib/browser/Key.js
2014-04-24 09:19:58 -03:00
Matias Alejo Garcia
64b5623d54
removes buffertools dependencies in browsers Key.js
2014-04-23 21:32:25 -03:00
Ryan X. Charles
350f6ae998
Key should make sure new privkey is less than N
...
...this involves adding a Curve class, and significant refactoring to make this
possible in a clean way.
2014-04-23 21:15:55 -03:00
Ryan X. Charles
dbcf270826
use SecureRandom in Key in the browser
...
...to make sure random numbers are generated securely
2014-04-22 22:43:22 -03:00
Ryan X. Charles
ba692aaa20
add new SecureRandom class that does the right thing
...
Generating random numbers properly depends on the platform. The new
getRandomBuffer method does the right thing on the right platform. It will
sometimes fail due to insufficient entropy. The getPseudoRandomBuffer class is
also provided that will never fail, but it is not cryptographically secure and
should not be used for keys.
2014-04-22 22:18:59 -03:00
Ryan X. Charles
f82fa5007a
move *.browser and *.node to browser/* and node/*
...
...this should leave the lib folder a little bit less cluttered.
2014-04-22 19:36:18 -03:00