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

Fix jsbn browser check #1106

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bolt-juri-gavshin
Copy link

@bolt-juri-gavshin bolt-juri-gavshin commented Jan 3, 2025

fixes #1081

Previous versions of NodeJS/Bun/Deno didn't have 'navigator' defined, while latest one do have it, which forces am2 algorithm with 26 dbits, which is awfully slow (~20x), at least in NodeJS v22 (compared to am3 with 28 dbits)

Previous versions of NodeJS/Bun/Deno didn't have 'navigator' defined, while latest one do have it, which forces am2 algorithm with 26 dbits, which is awfully slow, at least in NodeJS v22 (compared to am3 with 28 bits)
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

Successfully merging this pull request may close these issues.

[jsbn] Node 21 introduced navigator global object which has changed jsbn behaviour
1 participant