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

chore(node/crypto): add browserify-rsa #1980

Merged
merged 12 commits into from
Mar 6, 2022
Merged

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Mar 2, 2022

depends on #1979

This PR adds browserify-rsa to node/_crypto/

part of #1962

@kt3k kt3k requested a review from bartlomieju as a code owner March 2, 2022 11:05
import { BN } from "./bn.js/bn.js";
import { randomBytes } from "./randombytes.ts";

function blind(priv) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is proper blinding. E(x) = (xr)e mod N - It seems to be missing mod N

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kt3k kt3k merged commit 6571efa into denoland:main Mar 6, 2022
@kt3k kt3k deleted the chore/node-crypto-rsa branch March 6, 2022 11:44
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.

2 participants