Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Bigint in Firefox #46

Closed
SET001 opened this issue Dec 16, 2013 · 10 comments
Closed

Error in Bigint in Firefox #46

SET001 opened this issue Dec 16, 2013 · 10 comments

Comments

@SET001
Copy link

SET001 commented Dec 16, 2013

Can't get this work on Firefox (20.0). If only I include biging.js like this

<script src="js/salsa20.js"></script>
<script src="js/crypto.js"></script>
<script src="js/bigint.js"></script>

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 get BigInt is undefined and DSA is not a constructor

@SET001
Copy link
Author

SET001 commented Dec 16, 2013

here is a plunk for this http://plnkr.co/edit/nwLDjPkw1ZRsNAl7NpKt?p=preview

@nadimkobeissi
Copy link
Contributor

Have you tested your code in Chrome?

@SET001
Copy link
Author

SET001 commented Dec 16, 2013

@KAepora, Yes it work fine in Chrome.

@SET001
Copy link
Author

SET001 commented Dec 16, 2013

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.

@arlolra
Copy link
Owner

arlolra commented Dec 16, 2013

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?

@nadimkobeissi
Copy link
Contributor

As an aside, one really annoying thing is that the Tor Browser Bundle is still stuck on Firefox 17 😞

@arlolra
Copy link
Owner

arlolra commented Dec 16, 2013

@KAepora The TBB 3.5rc1 has version 24 with window.crypto.getRandomValues(),
https://blog.torproject.org/blog/tor-browser-bundle-35rc1-released

@nadimkobeissi
Copy link
Contributor

That's awesome!!

@SET001
Copy link
Author

SET001 commented Dec 17, 2013

Updated Firefox to 26.0 and problem disappeared for me.

@arlolra
Copy link
Owner

arlolra commented Dec 17, 2013

Glad to hear it.

@arlolra arlolra closed this as completed Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants