Closed SET001 closed 10 years ago
here is a plunk for this http://plnkr.co/edit/nwLDjPkw1ZRsNAl7NpKt?p=preview
Have you tested your code in Chrome?
@kaepora, Yes it work fine in Chrome.
The problem is in BigInt library but it seem's like Arlolra's version is different from what's on Leemon Baird`s site so I'm not sure to whom should I refer with this issue.
Ah, so that error is warning you that your browser doesn't have a CSPNRG. There's some discussion is #10 about this but the gist of it is that OTR is refusing to generate weak keys by design.
Firefox introduced window.crypto.getRandomValues in 21. Any reason you haven't upgraded?
As an aside, one really annoying thing is that the Tor Browser Bundle is still stuck on Firefox 17 :disappointed:
@kaepora The TBB 3.5rc1 has version 24 with window.crypto.getRandomValues()
,
https://blog.torproject.org/blog/tor-browser-bundle-35rc1-released
That's awesome!!
Updated Firefox to 26.0 and problem disappeared for me.
Glad to hear it.
Can't get this work on Firefox (20.0). If only I include biging.js like this
it says
throw new Error('Keys should not be generated without CSPRNG.')
Further usage is impossible because if only I try to call DSA constructor I'll getBigInt is undefined
andDSA is not a constructor